diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2018-04-04 02:41:56 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2018-04-05 19:53:36 +0300 |
commit | f224567d52096fd6219a2a4a4d2b9cbcc5219e7a (patch) | |
tree | 026b5b925aa36d3415ccd615bc8ba0cec74d63d0 /test/Tests/Lua.hs | |
parent | 87dda2109d01098dcf41c01559d3e91e2627cd10 (diff) | |
download | pandoc-f224567d52096fd6219a2a4a4d2b9cbcc5219e7a.tar.gz |
FB2 writer: represent HorizontalRule as empty line
HorizontalRule corresponds to <hr> element in the default output
format, HTML. Current HTML standard defines <hr> element as
"paragraph-level thematic break". In typography it is often
represented by extra space or centered asterism ("⁂"), but since
FB2 does not support text centering, empty line (similar to extra space)
is the only solution.
Line breaks, on the other hand, don't generate <empty-line />
anymore. Previously line breaks generated <empty-line /> element
inside paragraph, which is not allowed. So, this commit addresses
issue #2424 ("FB2 produced by pandoc doesn't validate").
FB2 does not have a way to represent line breaks inside paragraphs.
They are replaced with LF character, which is not rendered by
FB2 readers, but at least preserves some information.
Diffstat (limited to 'test/Tests/Lua.hs')
0 files changed, 0 insertions, 0 deletions