trentm / python-markdown2

markdown2: A fast and complete implementation of Markdown in Python
Other
2.67k stars 433 forks source link

No highlight for inline code blocks #200

Closed riteme closed 8 years ago

riteme commented 8 years ago

python-markdown2 is very nice and I used it in my blog.
But it seems that markdown2 will process all code blocks to be highlighted.

'inline-code`和`Hello, world`

It has been parsed to these:

Is there any way to disable it for inline code? Thank you.

marios-zindilis commented 8 years ago

It's not clear what the problem is here. Can you please provide a longer example of your code that demonstrates the issue, so that we can reproduce it?

For example something similar to this:

>>> from markdown2 import markdown
>>> markdown("'inline-code`?`Hello, world`")
u"<p>'inline-code<code>?</code>Hello, world`</p>\n"
riteme commented 8 years ago

Sorry, I found that it was caused by strapdown. Python-markdown2 works correctly. ;)