executablebooks / markdown-it-py

Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed. Now in Python!
https://markdown-it-py.readthedocs.io
MIT License
662 stars 68 forks source link

Multiline bold #307

Open humbertogontijo opened 8 months ago

humbertogontijo commented 8 months ago

Describe the bug

context When I do

**and this sentence should
be bolded**

expectation I expected all text to be bold.

bug But instead I get same text as parse input

Reproduce the bug

Just check token from: markdown_it.MarkdownIt().parse("""and this sentence should be bolded""") There are no bold token, only text

List your environment

No response

welcome[bot] commented 8 months ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

chrisjsewell commented 8 months ago

Heya, I think you may be mistaken:

$ python -c "import markdown_it; print(markdown_it.MarkdownIt().render(\"**and this sentence should\nbe bolded**\"))"
<p><strong>and this sentence should
be bolded</strong></p>

perhaps an old markdown-it-py version?