Code blocks are a barrier to quoting



  • Continuing the discussion from &lt1000:

    @tarunik said:

    P.S. found another Discobug: [code] within
    breaks the quote, but the quad-backtick syntax for code blocks doesn't.

    [quote="tarunik, post:31, topic:3110]
    [code]
    def spam():
    return 42
    [/code]



  • But,
    @tarunik said:

    ````
    def spam():
    return 42

    works fine (for some value of fine: the indent gets swallowed here).


  • If you guys knew anything, you'd know that quotes shouldn't have formatting.


    Filed Under: doing it wrong


  • :belt_onion:

    @boomzilla said:

    If you guys knew anything, you'd know that quotes shouldn't have formatting.

    Except they recently patched it so that quotes have formatting:
    @boomzilla said:

    If you guys knew anything, you'd know that quotes shouldn't have formatting.


    Filed Under: doing it wrong


    it even got your markdown.

    how about now... my full quote of you breaks the code block instead of the other way around:
    @tarunik said:

    Continuing the discussion from &lt1000:

    [quote="tarunik, post:31, topic:3110]
    [code]
    def spam():
    return 42
    [/code]


    [/quote]

    and now i even made code blocks work in quotes:

    @tarunik said:

    [code]
    @tarunik said:
    Continuing the discussion from &lt1000:

    [code]
    def spam():
    return 42
    [/code]


    [/code]

    To sum up? It's just a big bag of random dicsoursistency. GLWT.



  • So was this still a bug that needs to be reported, or is it just updated behavior of formatting in quotes?



  • Then there's this little ball of joy...

    quote created with >
    containing a bbcode quote
    @tufty said:

    breaks everything

    But don't worry. StandardMarkdownCommonMark will fix everything!

    Let's look at the CommonMark test cases for code, shall we?

    foo - Good

    foo ` bar - Good

    `` - Bad

    foo bar baz - Not quite

    foo `` bar - Bad

    foo \ bar` - Good

    *foo* - Bad

    [not a link](/foo) - Good

    http://foo.bar.`baz` - Good

    ` - Good

    Nope, HTMarkCode doesn't do CommonMark compliant code rendering, even if you ignore the bugs caused by quote and hr interference.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.