You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you know that CommonMark supports buttons? Apparently it does:
The trouble is: renderer appends the character class blindly to the language- part. If there are spaces there, we'll end up with <code class="language-foo bar"> which is two separate classes.
Well technically space (0x20) is filtered. But HTML5 allows 5 space characters according to 2.4 part of the spec. I'll quote:
The space characters, for the purposes of this specification, are U+0020 SPACE, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), and "CR" (U+000D).
So, this code block will have three classes: language-foo, bar and baz:
```foo	barbaz
code
```
Second and third are essentially user-supplied, which is usually a bad thing.
The text was updated successfully, but these errors were encountered:
Did you know that CommonMark supports buttons? Apparently it does:
The trouble is: renderer appends the character class blindly to the
language-
part. If there are spaces there, we'll end up with<code class="language-foo bar">
which is two separate classes.Well technically space (0x20) is filtered. But HTML5 allows 5 space characters according to 2.4 part of the spec. I'll quote:
So, this code block will have three classes:
language-foo
,bar
andbaz
:Second and third are essentially user-supplied, which is usually a bad thing.
The text was updated successfully, but these errors were encountered: