GitbookIO / kramed

A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
MIT License
223 stars 47 forks source link

Wrap footnote in a <p> tag #37

Closed christopheradams closed 4 years ago

christopheradams commented 8 years ago

Ensures that the parser produces valid XHTML for footnotes. The <blockquote> should contain another block-level element like <p> or <div>.

Addresses GitbookIO/gitbook#1144. With this fix, footnotes will pass IDPF/epubcheck's EPUB version 2.0.1 rules.

rishighan commented 5 years ago

It seems that this was never merged into master. I may be beating a dead horse, but are the periods after <sup>[footnote reference]</sup> over here https://github.com/GitbookIO/kramed/pull/37/files#diff-de043c47b7a14d2d383d220efbaa9c2eR152 a matter of preference? They look strange in my opinion.