mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-11 05:44:45 +00:00
Code blocks are not properly handled #607
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheArcaneBrony on GitHub (Jun 26, 2023).
Turning this markdown codeblock into HTML throws an argument out of bounds exception:
Unhandled exception. System.ArgumentException: Markdown elements in the input are too deeply nested - depth limit exceeded. Input is most likely not sensible or is a very large table.This should be a single codeblock with text content... Excuse the missing newlines in the body.
@xoofx commented on GitHub (Jul 8, 2023):
You mean simple code blocks with a single
`? In that case, the block wouldn't be escapable because there are backsticks in that strings that will conflict. The nesting error is probably due to a block escaping and then there are multiple e.g[that are going to create parsing errors because the parser thinks that these are going to be links.A fenced code block
```should work otherwise use a double backstick (or more)``code blocks.@TheArcaneBrony commented on GitHub (Oct 1, 2023):
What i meant was eg. putting the output of
neofetchinside of a fenced codeblock.