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
When converting to EPUB 3, Pandoc converts inline hr tags in markdown documents into a pair that opens and closes. This does not seem to happen when converting to a plain HTML snippet.
Even though most of the times inlining an HTML hr tag in markdown will be pointless as markdown does have a native syntax for an equivalent, it will be necessary to do so if we need the tag in the output HTML to have a class attribute.
While no web engine that I know of will have problems rendering that, that deviation from what the HTML specification says of hr brings no benefit, and Kindlegen (Amazon's tool for converting EPUB into their Mobipocket format) will produce warning messages about it being an "invalid tag", polluting the conversion report.
Steps to reproduce:
Having the following source document sample.txt:
This is paragraph no. 1.
---
This is a 2nd paragraph.
<hr class="tall" />
And this one is the last paragraph.
When converting to EPUB 3, Pandoc converts inline
hr
tags in markdown documents into a pair that opens and closes. This does not seem to happen when converting to a plain HTML snippet.Even though most of the times inlining an HTML
hr
tag in markdown will be pointless as markdown does have a native syntax for an equivalent, it will be necessary to do so if we need the tag in the output HTML to have aclass
attribute.While no web engine that I know of will have problems rendering that, that deviation from what the HTML specification says of
hr
brings no benefit, and Kindlegen (Amazon's tool for converting EPUB into their Mobipocket format) will produce warning messages about it being an "invalid tag", polluting the conversion report.Steps to reproduce:
Having the following source document sample.txt:
Expected results
Both 1 & 2 should have produce the following snippet (leaving aside the EPUB 3's extra wrapping boilerplate and meaningless whitespace differences):
Actual results
While such is the result in the case of 2, EPUB 3's output (i.e. 1) has had the tag
<hr class="tall" />
converted into<hr class="tall"></hr>
:The text was updated successfully, but these errors were encountered: