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
The additional playpen parameters (in case of inline markdown rust code) are not added to class list of generated playpen if separated by whitespace from the rust language specifier.
```rust, no_run
...
this should result in
<code class="language-rust no_run">...</code>
edit:
following works
```rust,no_run
...
while the space separated does not
```rust, no_run
...
edit2: This feature works somewhat outside of CommonMark spec. rust,no_run is treated as language-rust,no_run by the virtue of not containing any whitespace. CommonMark spec does not specify any mandatory behavior for the reminder of the codeblock header (which pulldown-cmark eagerly utilizes dropping everything after the whitespace)
TLNR: I learnt something new today ;)
The text was updated successfully, but these errors were encountered:
budziq
changed the title
no_run and other playpen parameters no longer added to <code> classesno_run and other playpen parameters not added to <code> classes if space separated
Aug 8, 2017
The no_run,ignore,should_panic annotation is already eagerly used by several mdbooks and markdown test preprocessors. The best I can think of to make the behavior more consistent is to preprocess the markdown codeblock headers in order to get rid of whitespace. Pushing non spec conformant changes to pulldown-cmark is not realistic nor desirable.
The additional playpen parameters (in case of inline markdown rust code) are not added to class list of generated playpen
if separated by whitespace from the
rust
language specifier.this should result in
edit:
following works
while the space separated does not
edit2: This feature works somewhat outside of CommonMark spec.
rust,no_run
is treated aslanguage-rust,no_run
by the virtue of not containing any whitespace. CommonMark spec does not specify any mandatory behavior for the reminder of the codeblock header (which pulldown-cmark eagerly utilizes dropping everything after the whitespace)TLNR: I learnt something new today ;)
The text was updated successfully, but these errors were encountered: