You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual result: The snippet above results in the following output:
<h1id="foo">Foo</h1><h1id="bar">Bar</h1><p>Foo paragraph.
Bar paragraph.</p>
While empty-line paragraph style seems to be preferred in the org-mode community, org.el renders the example above correctly. Also, the org syntax reference states that "[e]mpty lines and other elements end paragraphs".
Just for reference: This seems to have been broken by commit 95384d4.
sometimesfood
changed the title
Paragraphs that are not followed by an empty line are not correctly parsed
Paragraphs that are not followed by an empty line are not parsed correctly
May 26, 2018
I had a branch I was getting ready to PR into Hugo this week that fixed this, but it looks like @niklasfasching PR'ed a new org parser, so I'm closing all the issues here, deprecating and archiving goorgeous.
When a paragraph is not followed by an empty line, it is incorrectly moved to the following section by goorgeous.
This org snippet illustrates the problem:
Expected result: The snippet above should result in the following output:
Actual result: The snippet above results in the following output:
While empty-line paragraph style seems to be preferred in the org-mode community, org.el renders the example above correctly. Also, the org syntax reference states that "[e]mpty lines and other elements end paragraphs".
Here's a branch that adds a (failing) test case for this issue:
https://github.com/sometimesfood/goorgeous/tree/linebreak-fail
sometimesfood@8cc4f08
The text was updated successfully, but these errors were encountered: