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
// if it's indented more than 3 spaces, it should be a code block
if (state.sCount[startLine] - state.blkIndent >= 4) { return false }
Question / Bug description
If I understand correctly, disabling the code rule just disables rendering of the code block, but not the code block parsing logic. Similar to the case with 2 spaces, I propose that disabling the code rule should skip the code block parsing in all other rules.
When disabling the
code
rule, the default seems to be rendering a paragraph, no matter what the content is.Setup
Output
This is because in the other rules there is also a "code block check", e.g. https://github.com/markdown-it/markdown-it/blob/master/lib/rules_block/heading.mjs#L10
Question / Bug description
If I understand correctly, disabling the
code
rule just disables rendering of the code block, but not the code block parsing logic. Similar to the case with 2 spaces, I propose that disabling thecode
rule should skip the code block parsing in all other rules.Background:
Might be connected to #936
The text was updated successfully, but these errors were encountered: