mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 00:16:45 +00:00
Add warning about MMark and TOCs
This commit is contained in:
1 parent
e8d259d327
commit
d6dfbbc511
1 file changed
+4
@@ -45,6 +45,10 @@ Hugo will take this Markdown and create a table of contents from `## Introductio
|
|||||||
|
|
||||||
The built-in `.TableOfContents` variables outputs a `<nav id="TableOfContents">` element with a child `<ul>`, whose child `<li>` elements begin with any `<h1>`'s (i.e., `#` in markdown) inside your content.'
|
The built-in `.TableOfContents` variables outputs a `<nav id="TableOfContents">` element with a child `<ul>`, whose child `<li>` elements begin with any `<h1>`'s (i.e., `#` in markdown) inside your content.'
|
||||||
|
|
||||||
|
{{% note "Table of contents not available for MMark" %}}
|
||||||
|
Hugo documents created in the [MMark](/content-management/formats/#mmark) Markdown dialect do not currently display TOCs. TOCs are, however, compatible with all other supported Markdown formats.
|
||||||
|
{{% /note %}}
|
||||||
|
|
||||||
## Template Example: Basic TOC
|
## Template Example: Basic TOC
|
||||||
|
|
||||||
The following is an example of a very basic [single page template][]:
|
The following is an example of a very basic [single page template][]:
|
||||||
|
|||||||
Reference in new issue
Block a user