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

Changing Line Combination Character in Paragraph #320

Closed
akkyie opened this issue May 22, 2015 · 3 comments
Closed

Changing Line Combination Character in Paragraph #320

akkyie opened this issue May 22, 2015 · 3 comments

Comments

@akkyie
Copy link

akkyie commented May 22, 2015

First of all, thanks a lot for your great work!

This time, I want to change the character which used to combine lines in paragraph.
Concretely, this markdown:

This is
a markdown.

will be parsed into:

This is a markdown.

As you see a space was inserted, and this behavior is suitable for languages which use word dividers, but not for some languages which doesn't use it such as Japanese or Chinese. So I want to remove this space.
I found that I can make it realized by changing '\n' to '' on the line 242 in Parsedown.php, but I don't want to tinker the original code.
Is there any solution without changing Parsedown.php itself but with extension?
Thanks

@hkdobrev
Copy link
Contributor

Just to confirm, you need

This is
a markdown.

to become

This isa markdown.

Correct?

@akkyie
Copy link
Author

akkyie commented May 22, 2015

Yes, exactly.

@aidantwoods
Copy link
Collaborator

Something I would advise is opening this issue with the CommonMark spec, maybe a fix could be reached that could be applied to all parsers conforming to the spec in certain situations.

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

3 participants