Skip to content
/ hugo Public
forked from gohugoio/hugo

Commit

Permalink
Fix AsciiDoc alias/extension mismatch
Browse files Browse the repository at this point in the history
This adds "asciidocext" as a valid file extension, and adds "asciidoc"
as an AsciiDoc provider alias.

Fixes gohugoio#9074
  • Loading branch information
jmooring committed Oct 22, 2021
1 parent 471ed91 commit 39733a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/content-management/formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The current list of content formats in Hugo:
| Blackfriday | blackfriday |Blackfriday will eventually be deprecated.|
|MMark|mmark|Mmark is deprecated and will be removed in a future release.|
|Emacs Org-Mode|org|See [go-org](https://github.com/niklasfasching/go-org).|
|AsciiDoc|asciidocext, adoc, ad|Needs [Asciidoctor][ascii] installed.|
|AsciiDoc|asciidocext, asciidoc, adoc, ad|Needs [Asciidoctor][ascii] installed.|
|RST|rst|Needs [RST](http://docutils.sourceforge.net/rst.html) installed.|
|Pandoc|pandoc, pdc|Needs [Pandoc](https://www.pandoc.org/) installed.|
|HTML|html, htm|To be treated as a content file, with layout, shortcodes etc., it must have front matter. If not, it will be copied as-is.|
Expand Down
2 changes: 1 addition & 1 deletion hugofs/files/classifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var (
contentFileExtensions = []string{
"html", "htm",
"mdown", "markdown", "md",
"asciidoc", "adoc", "ad",
"asciidocext", "asciidoc", "adoc", "ad",
"rest", "rst",
"mmark",
"org",
Expand Down
2 changes: 1 addition & 1 deletion markup/markup.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func NewConverterProvider(cfg converter.ProviderConfig) (ConverterProvider, erro
if err := add(mmark.Provider); err != nil {
return nil, err
}
if err := add(asciidocext.Provider, "ad", "adoc"); err != nil {
if err := add(asciidocext.Provider, "ad", "adoc", "asciidoc"); err != nil {
return nil, err
}
if err := add(rst.Provider); err != nil {
Expand Down

0 comments on commit 39733a6

Please sign in to comment.