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

Formatting error when input contains multiple words surrounded by triple asterisks #555

Closed
ryanvilbrandt opened this issue Dec 15, 2023 · 2 comments

Comments

@ryanvilbrandt
Copy link
Contributor

Describe the bug
When the markdown input contains multiple words surrounded by triple asterisks (bold and italics), the output is improperly formatted.

To Reproduce

BELFRY: In fact, what would you know about ***ANY*** of this?!
BELFRY: You've never had to look after anything in your ***LIFE!***

Expected behavior
I expect the output to look like this:

<p>BELFRY: In fact, what would you know about <strong><em>ANY</em></strong> of this?!<br />
BELFRY: You've never had to look after anything in your <strong><em>LIFE!</em></strong></p>

Actual behavior
Output:

<p>BELFRY: In fact, what would you know about <strong><em>ANY</em><em>* of this?!<br />
BELFRY: You've never had to look after anything in your *</em><em>LIFE!</em></strong></p>

Debug info
Version of library being used:
2.4.11

Any extras being used:
strike, break-on-newline

Additional context
This bug was introduced in 2.4.11. The output is formatted properly on 2.4.10.

@Crozzers
Copy link
Contributor

I tested against 2.4.11 and then master and the bug has since been resolved (I think by #545). Until 2.4.12 gets released, a workaround could be to install version <=2.4.10

@nicholasserra
Copy link
Collaborator

2.4.12 has now been released, thanks!

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