Footnotes and custom style maps
See original GitHub issueHello,
Thank you for the great document convertor – It’s very helpful!
A question: Is it possible to use custom style maps to change how footnotes are converted? I would like to have them appear inline, wrapped in some form of tag (e.g. span.fn
). In order to do that, I tried the following:
r[style-name='FootnoteReference'] => span.fn:fresh
p[style-name='FootnoteReference'] => span.fn:fresh
p[style-name='footnote text'] => span.fn:fresh
r[style-name='footnote reference'] =>
p[style-name='Footnote'] => span.fn:fresh
r[style-name='Footnote anchor'] =>
p[style-name='footnoteReference'] => span.fn:fresh
r[style-name='footnoteReference'] =>
but it didn’t have any effect; the footnotes still show up in the usual way (i.e. superscript anchors that link to ordered lists).
I’m not sure if this is relevant, but whenever I run mammoth (with or without the style map), I get the following alert:
Run style with ID FootnoteReference was referenced but not defined in the document Unrecognised run style: ‘null’ (Style ID: FootnoteReference)
(This is where I got those style names from).
Is there a way to disable to footnote reader? Or would this have to be done with postprocessing the html?
Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
would love to see that feature too
hi there! That would be quite useful for us too! THanks!