Comments
-
Greg Hurrell
Out of interest, what's the use case here? I personally can't see myself ever needing this, but if you could explain a bit why this is a useful thing then I'd be willing to consider adding it.
-
Greg Hurrell
Just headed over to Wikipedia and did a quick test. Multiple consecutive blank lines are actually getting translated into
<p></p>
spans, each containing a<br />
tag;ie (one blank line):
hello world
And (two blank lines):
hello world
Both get marked up as:
<p>hello</p> <p>world</p>
But (three blank lines):
hello world
Gets marked up as:
<p>hello</p> <p><br /></p> <p>world</p>
-
anonymous
The biggest case I can make for it is the adherence to the mediawiki behavior. (Thanks for looking at it, and sorry to have glossed over the details you outlined above).
An example of where my end users try to use it is when there is a floating image on the right side of a section, with text in normal flow on the left. The text doesn't reach the bottom of the image before the next ==h2== section starts. As a result, the section heading "runs into" the image.
It seems intuitive to the users that adding blank lines prior to the section heading would "move it down", and it feels unresponsive when it doesn't.
Attempted illustration where you might want to move a section down:
==Example== Lorem ipsum dolor sit amet, +-------------+ consectetur adipiscing elit. | | Pellentesque suscipit, augue | | sit amet sollicitudin | | pellentesque, mi libero | | lacinia dui, non lacinia | | risus nulla ac massa. Sed | | | | | | ==second h2 element== | | | | | | | | +-------------+
-
Greg Hurrell
Ok, seems like a fair enough use case. Going to mark this one as "open" and will check out if it can be implemented without too many invasive changes to the parser.
-
Greg Hurrell
Status changed:
- From: new
- To: open
Add a comment
Comments are now closed for this issue.