[kramdown-users] feature suggestion: styling in code blocks

Thomas Leitner t_leitner at gmx.at
Thu Oct 14 02:34:48 EDT 2010


On 2010-10-14 03:07 +0700 Shawn Van Ittersum wrote:
> Sorry, Matt, but I really don't think it's a good idea to interpret
> code spans/blocks, even for emphasis and italics.  Besides, the
> underscore sequence you used might show up in Python, which makes the
> point that it's very difficult to devise an emphasis syntax that
> won't be valid code in some other language.  Code spans and blocks
> should be untouchable.

I have to agree with Shawn, I don't think that this is a good idea. In
any case, you can use pure HTML to work around this:

    <pre>
    if (<em>condition</em>)
    <strong>// do stuff</strong>
    </pre>

Or a mixture of HTML and kramdown syntax:

    <pre markdown="span">
    if (_condition_)
    **// do stuff**
    </pre>

-- Thomas


More information about the kramdown-users mailing list