some text^[This is an inline footnote.]
Ongoing
According to
Repology,
the latest
packaged Hugo
is
.
2022-August-2
As of today, this evolving[1]
article
has been on
the web
for
Thanks to
Hugo’s .RenderString
method,
which was introduced in
Hugo v0.62.0,
it’s possible to use more than one of
Hugo’s markup languages
in the source of a single
page.
This means
you can test
features
of
Hugo’s
markup languages
without
creating a separate file for each markup language.
To learn about Markdown footnotes, see the Footnotes👣 section of Infinite Ink’s Ordinary and Extraordinary Markdown. Some (not all) Markdown flavors support the following syntax for inline footnotes:
some text^[This is an inline footnote.]
In the source of the
first
two
tests
below, I use
Infinite Ink’s renderas
shortcode to test
this syntax in
the
Markdown flavors
supported
by
Hugo
v0.100.0+.[2][3]
Pandoc-flavored Markdown supports this inline footnote syntax.
Goldmark-flavored Markdown does not support this inline footnote syntax. It’s possible — but probably not likely — inline footnotes will be supported in a future version of Goldmark.
To learn about AsciiDoc footnotes, see docs.asciidoctor.org/asciidoc/latest/macros/footnote/.
{{< renderas adoc >}} some textfootnote:[This is an inline footnote.] {{< /renderas >}}
ℹ | Test 3’s renderas argument can be
ad ,
adoc ,
or
asciidocext
(but not asciidoc , which
is
a bug). |
Three of the four markup languages tested in this article support inline footnotes.👍
For more about Markdown, see Infinite Ink’s…
Hugo’s .RenderString
Method (featuring AsciiDoc admonitions in Markdown and Go HTML)
Hugo’s Markup Languages: AsciiDoc, HTML, Markdown,
🔗 Linkified Section Headings in Hugo-Generated Web Pages (featuring Markdown and AsciiDoc examples)
Hugo Shortcodes: Including Go Templates in Hugo Content Files
@nm@mathstodon.xyz
or
#InfiniteInk
in it.