MyST-Parser icon indicating copy to clipboard operation
MyST-Parser copied to clipboard

Missing newline from doc

Open mrx23dot opened this issue 1 year ago • 6 comments

Describe the gap in the current documentation

Doc doesn't say how to add newline https://myst-parser.readthedocs.io/en/latest/search.html?q=newline

Adding backslash didn't work

##subtitle
* entry
* entry
\
\
\
* entry
* entry

adding HTML also didn't work <br>

not sure what should work.

Describe the solution you'd like

No response

mrx23dot avatar Apr 22 '24 15:04 mrx23dot

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Apr 22 '24 15:04 welcome[bot]

Heya, see https://myst-parser.readthedocs.io/en/latest/syntax/typography.html#line-breaks

chrisjsewell avatar Apr 22 '24 18:04 chrisjsewell

## COMMON_STEPS
* test 1
\
\
\
* test 2
* test 3

produces image

<li><p>test 1
<br />
<br />
\</p></li>
<li><p>test 2</p></li>
<li><p>test 3</p></li>

not 3 line breaks

mrx23dot avatar Apr 23 '24 09:04 mrx23dot

Fare enough, thanks

mrx23dot avatar Apr 23 '24 09:04 mrx23dot

I'm trying to put an empty line between list items, but none of these work

* itemA BACKSLASH_HERE

* itemB

* itemA
<br>

* itemB

* itemA
<br />

* itemB

* itemA
$~$

* itemB

* itemA
&NewLine;

* itemB

* itemA
&nbsp;

* itemB

* itemA


* itemB

I still see items next to each other, without empty line

  • itemA
  • itemB

standard modes via https://stackoverflow.com/questions/20543454/create-two-blank-lines-in-markdown

\ works with non-list paragraphs.

Why not just use an unambiguous expression that always replaced with HTML break to make life easier.

mrx23dot avatar Nov 22 '24 13:11 mrx23dot