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

Emphasis around link ignored when followed by a special punctuation character #175

Closed
redstoneleo opened this issue Jan 10, 2023 · 1 comment
Labels

Comments

@redstoneleo
Copy link

s1=r'''**[Usage](http://127.0.0.1:8000/cms/pages/82/edit/)**:'''
import mistletoe
from mistletoe import Document, HTMLRenderer
rendered = mistletoe.markdown(s1, HTMLRenderer)
print(rendered)

output:
<p>**<a href="http://127.0.0.1:8000/cms/pages/82/edit/">Usage</a>**:</p>
the correct should be :
<p><strong><a href="http://127.0.0.1:8000/cms/pages/82/edit/">Usage</a></strong>:</p>

@pbodnar
Copy link
Collaborator

pbodnar commented Jan 10, 2023

@redstoneleo, thanks for the report. Luckily, this issue is already fixed in the master - by 0c05dcd within #96.

Details: This problem occurred only when using the special char of instead of the more common : (2 chars).

@pbodnar pbodnar closed this as completed Jan 10, 2023
@pbodnar pbodnar changed the title wrong result Emphasise around link ignored when followed by a special punctuation character Jan 10, 2023
@pbodnar pbodnar added the bug label Jan 10, 2023
@pbodnar pbodnar changed the title Emphasise around link ignored when followed by a special punctuation character Emphasis around link ignored when followed by a special punctuation character Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants