Comments (3)
Your suggested HTML is invalid: span
elements are not allowed to contain block-level elements like paragraphs.
from pandoc.
That's interesting. Is supported by anything
other than the princexml formatter?
One reservation I have is this. Footnotes in pandoc can contain block
elements. (E.g. you could have a footnote with two paragraphs, a bullet
list, and a code block.) HTML elements are not supposed to
contain block-level elements like
. I don't think I want pandoc to
produce invalid HTML.
John
+++ lrayb [May 05 11 06:29 ]:
Hello John,
Perhaps you may consider adding a css footnotes option to the HTML writer?
The princexml formatter converts (X)HTML or XML to PDF using CSS paged media.
All footnote related processing is done via the formatter and CSS. All that is required in the
HTML, is an inline span with class "footnote" containing the actual footnote content, as below:... figure with a caption.<span class="footnote"><p>This feature is not yet implemented for RTF, OpenDocument, or ODT. In those formats, you'll just get an image in a paragraph by itself, with no caption.</p></span> (In LaTeX ...This implies that the HTML writer insert the footnote content, as a span in the document, where the footnote number should appear.
The reference links, backlinks, and list of footnotes at the document end, become superfluous.It would be really neat if you could add an option to pandoc to accomplish this, perhaps:
pandoc --css-footnote
Currently, I run a script to change my HTML output prior to producing the PDF.
I think only princexml supports this, (other browers likely won't) so it's hardly a priority, but would
be greatly appreciated.Thank you for all your structured procrastination on pandoc, it makes my life much easier.
Regards
Laurence R Buchanan
from pandoc.
Hello John,
I clearly did not think that one through.
Using a span would suffice only for the simplest examples, without producing invalid markup against a strict DTD.
The recommended method, as per Mike Day, in this post, footnotes containing paragraphs, is to use divs.
<div>some text <div class="footnote">
<p>text 1</p>
<p>text 2</p>
</div> some more text.</div>
That approach would imply bigger changes to the HTML writer than I envisaged.
AFAIK, princexml is the only formatter which implements footnotes as per the css3 generated content for paged media module working draft.
I've left the issue open, should you have further thoughts, but I agree, pandoc should not produce any invalid markup.
Thank you very much for taking a look.
Laurence.
from pandoc.
Related Issues (20)
- Exponential runtime for [link](url) HOT 8
- New approach to LaTeX math environments
- Pandoc not identifying typst's #context feature HOT 5
- Markdown to PDF: natbib citations are rendered as [?] HOT 4
- Add the 'alert' extension to Pandoc standard markdown HOT 3
- Support for Manual Bibliography Sorting HOT 4
- Support Zotero citations in docx writer HOT 6
- pandoc does not pick up the figure which pandoc-crossref specifies using "<figure" HOT 22
- export from google docs: lots of empty html comment inside clode blocks HOT 3
- Support `abstract-title` for Typst format HOT 3
- Docx -> HTML: Pandoc discards comments on tables, table rows and table cells
- Access violation in generated code when reading 0xffffffffffffffff HOT 1
- Doesn't generate link ID if convert to markdown_strict when using link-citations. HOT 1
- Section Cross Reference ID is removed when converting from Quarto markdown to markdown_strict HOT 1
- Several bug with pandoc-xnos HOT 1
- Document `handout` variable
- Unwanted rowspan in grid table HOT 1
- Document additional formats affected by `--slide-level`
- YAML parse exception...: did not find expected <document start> HOT 3
- Syntax Highlighting not working in HTML (CSS not being picked up) HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc.