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
$ node
> var m = require("marked");
undefined
> m("```\nThis is code\n```");
'<pre><code>This is code\n</code></pre>'
> m("<div>```\nThis is code\n```</div>");
'<div><code>This is code</code></div>'
> m("<div>\n```\nThis is code\n```\n</div>");
'<div>\n<code>This is code</code>\n</div>'
The first example works as expected. The second and third just do <code>, like it's inline. It's not tag specific, or least it doesn't appear to be...
> m("<abc>\n```\nThis is code\n```\n</abc>");
'<abc>\n<code>This is code</code>\n</abc>'
Just any code fences inside markup is assumed to be inline code instead of code blocks.
The text was updated successfully, but these errors were encountered:
The first example works as expected. The second and third just do <code>, like it's inline. It's not tag specific, or least it doesn't appear to be...
Just any code fences inside markup is assumed to be inline code instead of code blocks.
The text was updated successfully, but these errors were encountered: