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

bug: new paragraphs i.e. double-newlines #12

Open
harry-wood opened this issue Nov 9, 2022 · 1 comment
Open

bug: new paragraphs i.e. double-newlines #12

harry-wood opened this issue Nov 9, 2022 · 1 comment

Comments

@harry-wood
Copy link

Many bbcodes such as [b][s][u] & [i] will allow new paragraphs i.e. double-newlines

[b]para 1

para 2[/b]

and the bold effect will apply to both paragraphs. But this is harder to do in markdown. You can't do this:

**para 1

para 2**

(And this is the current incorrect output)

Ideally it would convert to this

**para 1**

**para 2**

...but don't forget we'd need to re-apply all formatting (any open bbcodes) to both paragraphs, so that may be a bit tricky to implement.

@harry-wood
Copy link
Author

If it's any consolation I've just been reporting the same problem in the ruby gem :-)

I'm suggesting a fix there with this commit but it's an ugly cheating workaround, to output this:

**para 1
<br>para 2**

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

1 participant