aboutsummaryrefslogtreecommitdiffhomepage
path: root/identity
diff options
context:
space:
mode:
authorNicolas Piganeau <[email protected]>2020-08-24 19:23:16 +0200
committerBjørn Erik Pedersen <[email protected]>2020-09-06 11:34:32 +0200
commit3ba7c92530a80f2f04fe57705ab05c247a6e8437 (patch)
tree1e3354fcef9ad233632006957a94a50155bc36e6 /identity
parent19ef27b98edca53c4138b01c0f7c7bfbeb5ffcf1 (diff)
downloadhugo-3ba7c92530a80f2f04fe57705ab05c247a6e8437.tar.gz
hugo-3ba7c92530a80f2f04fe57705ab05c247a6e8437.zip
markup/asciidoc: Add support for .TableOfContents
Fill the .TableOfContents template variable when writing Asciidoc content. This is done by letting Asciidoc render its TOC as HTML, then extract this HTML rendered TOC, parse it into a tableofcontents.Root and finally remove it from the HTML content. This aims to stay in the logic that the Asciidoc parsing is entirely done by the external helper. See #1687
Diffstat (limited to 'identity')
0 files changed, 0 insertions, 0 deletions