You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use footnotes in markdown files. With excellent library paged.js I compile a number of markdown files one after another and get the well paginated PDF.
There are few UI details which need extra care in this kind of setup.
One is prefix counters of headers and subheaders and for that I used a Markdown header hooks, in particular: heading hook.
I am interested to hear what are the different ways how the problem of distinguishing/resetting footnotes could be solved. My approach was to add to Hugo something already existing in goldmark: WithFootnoteIDPrefixFunction
The footnote prefix adds converter.DocumentContext{Document ID} which should be the page's UniqueID coming from source.File if it finds following line in config.toml:
I use footnotes in markdown files. With excellent library paged.js I compile a number of markdown files one after another and get the well paginated PDF.
There are few UI details which need extra care in this kind of setup.
One is prefix counters of headers and subheaders and for that I used a Markdown header hooks, in particular: heading hook.
I am interested to hear what are the different ways how the problem of distinguishing/resetting footnotes could be solved. My approach was to add to Hugo something already existing in goldmark: WithFootnoteIDPrefixFunction
The footnote prefix adds
converter.DocumentContext{Document ID}
which should be the page'sUniqueID
coming fromsource.File
if it finds following line inconfig.toml
:I know this is most probably out of scope of Hugo's core module but I'll be brave enough to paste the diff here:
The text was updated successfully, but these errors were encountered: