diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-08-31 15:44:07 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-08-31 16:05:09 -0400 |
commit | d3053807a834db7df115999fbcc4839e94e5f245 (patch) | |
tree | f1b234a5eb6c3be2009bf247adb36aee85e93c0d /src/Text/Pandoc/MIME.hs | |
parent | 44559055506461d2c675f978182aa20ee689433e (diff) | |
download | pandoc-d3053807a834db7df115999fbcc4839e94e5f245.tar.gz |
LaTeX writer: Put `~` before header in item text.
Because of the built-in line skip, LaTeX can't handle a section header
as the first element in a list item. (To be precise, it can't handle it
if the list immediately follows a section header, but the instance is
rare enough that we can afford to be a bit more general). This puts a
non-breaking space before the header to solve this problem. We won't see
this space, since the header skips a line before printing anyway.
The output is ugly in LaTeX and this structure seems like it should
probably be avoided. But it is valid HTML and native pandoc, so we
should have some sort of typesettable representation in LaTeX.
Diffstat (limited to 'src/Text/Pandoc/MIME.hs')
0 files changed, 0 insertions, 0 deletions