Im using python markdown for my django project, when i have the value
#/usr/bin/env python
print "this is converted to html code block"
the output is
<pre><code>
#/usr/bin/env python
print "this is converted to html code block"
</code><pre>
Now my question is that how can i pass class attribute and value to code elem. Sample:
#i should be using some markdown syntax below
[class="python"]
#/usr/bin/env python
print "this is converted to html code block"
and then the output here
<pre><code class="python">
#/usr/bin/env python
print "this is converted to html code block"
</code><pre>
is that possible? and how?
You can write HTML in Markdown, but you can't add things like classes and ids.
See this question or this question for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With