Skip to content

How do I enable footnotes? #48

Answered by Omikhleia
jslabovitz asked this question in Q&A
Discussion options

You must be logged in to vote

(Yes, markdown.sile turns the "notes" feature "on" by default.)

It actually seems lunamark expects a blank line after the footnote 👀
I just tried the following and I got the footnote as expected:

\begin[class=book]{document}
\use[module="packages.markdown"]
\begin[type=markdown]{raw}
Here is a note.[^mynote]

[^mynote]: This is the note's footnote.

\end{raw}
\end{document}

Note the blank line before closing the raw environment.

Well, the workaround is simple, but it's clearly a bug or interpretation issue in Lunamark, as I can reproduce it with a standalone Lua script (converting to HTML with only the bare lunamark library):

local lunamark = require("lunamark")
local opts = { notes = tr…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Omikhleia
Comment options

@Omikhleia
Comment options

Answer selected by jslabovitz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants