Attached is a patch to fennel-lang.org which promotes initial h1
headings to Pandoc titles and adds a table of contents to the reference.
The titles are still emitted as h1 headings, but they now also set the
page title and show up before tables of contents.
For some reason, the Lua filter prints warnings for each of the headings
that it promotes. Nevertheless, the filter still works fine. I'm not
entirely sure what's going on here.
I can rewrite the filter in Fennel and compile it to Lua in the makefile
if that would be preferable to people.
Benaiah Mischenko <email@example.com> writes:
> I can rewrite the filter in Fennel and compile it to Lua in the makefile> if that would be preferable to people.
Nah let's keep it simple.
Thanks for this! It looks great.