Code blocks are a barrier to quoting
-
Continuing the discussion from <1000:
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]
-
````
def spam():
return 42works 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
-
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 <1000:
[quote="tarunik, post:31, topic:3110]
[code]
def spam():
return 42
[/code]
[/quote]and now i even made code blocks work in quotes:
[code]
@tarunik said:Continuing the discussion from <1000:
[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
- Goodfoo ` bar
- Good``
- Badfoo bar baz
- Not quitefoo `` bar
- Badfoo \
bar` - Good*foo
*
- Bad[not a
link](/foo
) - Goodhttp://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.