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

Commenting out lines breaks paragraphs #92

Open
joshuahhh opened this issue Apr 5, 2023 · 1 comment
Open

Commenting out lines breaks paragraphs #92

joshuahhh opened this issue Apr 5, 2023 · 1 comment

Comments

@joshuahhh
Copy link
Collaborator

(Pretty sure this is a Pandoc-Markdown issue, not LP, but it's annoying enough to me that I wouldn't mind fixing it in LP.)

I split my paragraphs into one-sentence-per-line:

Sentence 1.
Sentence 2.
Sentence 3.

I comment out the second sentence:

Sentence 1.
<!-- Sentence 2. -->
Sentence 3.

Now it's formatted as two paragraphs! No good.

@jheer
Copy link
Member

jheer commented Apr 5, 2023

Yes, this has burned me before, too, and arises from the Pandoc parser output. I will need to take a closer look to figure out if the Pandoc AST has the right info in it to know when and when not to "stitch" things back together into a single paragraph.

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