-
Notifications
You must be signed in to change notification settings - Fork 71
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
Markdown does not render correctly when used inside a Django @stringfilter #56
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Heya, Is there a way to debug what text is actually being parsed to Because, the text you supplied seems to run fine through markdown-it-py: $ markdown-it
markdown-it-py [version 0.5.5] (interactive)
Type Ctrl-D to complete input, or Ctrl-C to exit.
>>> ---
__Advertisement :)__
- __[pica](https://nodeca.github.io/pica/demo/)__ - high quality and fast image
resize in browser.
- __[babelfish](https://github.com/nodeca/babelfish/)__ - developer friendly
i18n with plurals support and easy syntax.
You will like those projects!
---
# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
...
... ^D
<hr />
<p><strong>Advertisement :)</strong></p>
<ul>
<li>
<p><strong><a href="https://nodeca.github.io/pica/demo/">pica</a></strong> - high quality and fast image</p>
<p>resize in browser.</p>
</li>
<li>
<p><strong><a href="https://github.com/nodeca/babelfish/">babelfish</a></strong> - developer friendly</p>
<p>i18n with plurals support and easy syntax.</p>
</li>
</ul>
<p>You will like those projects!</p>
<hr />
<h1>h1 Heading 8-)</h1>
<h2>h2 Heading</h2>
<h3>h3 Heading</h3>
<h4>h4 Heading</h4>
<h5>h5 Heading</h5>
<h6>h6 Heading</h6>
>>>
Perhaps this is some issue with newline characters. |
OS: Windows 10 I've tried different Markdown parsers before (Markdown, markdown2, Mistune) and they worked without a problem. That's the console output of web_1 | ---
web_1 | __Advertisement :)__
web_1 |
web_1 | - __[pica](https://nodeca.github.io/pica/demo/)__ - high quality and fast image
web_1 | resize in browser.
web_1 | - __[babelfish](https://github.com/nodeca/babelfish/)__ - developer friendly
web_1 | i18n with plurals support and easy syntax.
web_1 |
web_1 | You will like those projects!
web_1 |
web_1 | ---
web_1 |
web_1 | # h1 Heading 8-)
web_1 | ## h2 Heading
web_1 | ### h3 Heading
web_1 | #### h4 Heading
web_1 | ##### h5 Heading
web_1 | ###### h6 Heading |
Describe the bug
Markdown is not correctly rendered when the package is used inside a string filter in Django.
Lists error out with Int() being passed characters, when I disable the "lists" rule, markdown parses through but it's missing first letter at new lines.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Source:
Log:
Environment
The text was updated successfully, but these errors were encountered: