Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single newlines are passed through, are interpreted as hard newlines by Confluence #2

Open
orospakr opened this issue Aug 15, 2012 · 1 comment

Comments

@orospakr
Copy link

In markdown, you can use newlines to do manual word wrapping (handy with M-q in emacs) and it does not consider them a new paragraph. Ie., Markdown considers double-newlines to be paragraph delimiters. See http://daringfireball.net/projects/markdown/syntax#p.

However, Confluence interprets single newlines into <br>s and markdown2confluence passes them right through, meaning that your paragraphs display in Confluence peppered with <br>s.

Instead, markdown2confluence It should strip out single newlines.

@reitzig
Copy link

reitzig commented Jan 19, 2017

Note that __\n (double space followed by new-line) should result in <br>.

Proposed parsing:

  1. Split by \s*\n\s*\n\s*; get back a list of paragraphs.
  2. Split by \s\s+\n\s*; get back a list of explicitly broken lines.

This ignores all other syntactic features, in particular code blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants