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

Remove an unnecessary trailing line break before end tag. #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

takahisa
Copy link

refs: #44

When parsing markdown text as follows, it contains an unexpected trailing line break in the output. I add a procedure that removes this unnecessary line break from the parsing result.

source markdown text:

* item1
* item2

1. item1
2. item2

foo bar
baz

output:

<ul><li>item1
</li><li>item2
</li></ul><ol><li>item1
</li><li>item2
</li></ol><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>

output (apply this patch)

<ul><li>item1</li><li>item2</li></ul><ol><li>item1</li><li>item2</li></ol><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>

@takahisa takahisa changed the title Remove an unnecessary tailing line break before end tag. Remove an unnecessary trailing line break before end tag. Jul 12, 2015
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

Successfully merging this pull request may close these issues.

1 participant