jgm / jgm/gitit

Interpret <br> as native newline formatting

Open
#222 2 comments 0 reactions 1 assignee Claimed by @jgm View on GitHub
Dominant language
Haskell
Stars
2.3k
Forks
231
PR merge metrics
No merged PRs in 30d

Description

See issue 78 for screenshots/examples:

http://code.google.com/p/gitit/issues/detail?id=78

Newlines expressed '<br>' (as opposed to the ' $' or '$\' Markdown
conventions) vanish when going from Markdown to PDF via ConText, because
the Context generator in Pandoc discards them. '<br>' fills an
inline-newline niche ("foo<br>baz") that the other 2 conventions do not,
and so a user might want (and expect) <br> to work like the others.

That is, <br> would be treated not as raw HTML/HtmlInline but as a regular
linebreak. If pandoc is exporting to HTML, then that linebreak will get
turned right back into a <br>, and the other formats like Context will get
the linebreaks they ought to. (Offhand, I know of no situation where one
wants the <br> to go through verbatim, and which would also not see all
regular linebreaks turned into <br>s.)

(This general idea might also apply to some of the other simple HTML markup
like <i> or <b>, but probably not. Those all are inline formatting with
inline Markdown replacements.)

Google Code Info:
Issue #: 79
Author: gwe...@gmail.com
Created On: 2009-12-21T00:43:43.000Z
Closed On:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.