Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code blocks are not properly handled #717

Open
TheArcaneBrony opened this issue Jun 26, 2023 · 2 comments
Open

Code blocks are not properly handled #717

TheArcaneBrony opened this issue Jun 26, 2023 · 2 comments
Labels

Comments

@TheArcaneBrony
Copy link

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.

�[?25l�[?7l�[0m�[36m�[1m -\` .o+\` \`ooo/ \`+oooo: \`+oooooo: -+oooooo+: \`/:-:++oooo+: \`/++++/+++++++: \`/++++++++++++++: \`/+++o�[0m�[36m�[1moooooooo�[0m�[36m�[1moooo/\` �[0m�[36m�[1m �[0m�[36m�[1m./�[0m�[36m�[1mooosssso++osssssso�[0m�[36m�[1m+\` �[0m�[36m�[1m .oossssso-\`\`\`\`/ossssss+\` -osssssso. :ssssssso. :osssssss/ osssso+++. /ossssssss/ +ssssooo/- \`/ossssso+/:- -:/+osssso+- \`+sso+:-\` \`.-/+oso: \`++:. \`-/+/ .\` \`/�[0m �[19A�[9999999D�[41C�[0m�[1m�[36m�[1mroot@Rory�[0m@�[36m�[1mRory-desktop�[0m �[41C�[0m----------------------�[0m �[41C�[0m�[36m�[1mOS�[0m�[0m:�[0m Arch Linux btw x86_64�[0m �[41C�[0m�[36m�[1mHost�[0m�[0m:�[0m Micro-Star International Co., Ltd. X470 GAMING PLUS MAX (MS-7B79)�[0m �[41C�[0m�[36m�[1mKernel�[0m�[0m:�[0m 6.3.8-zen1-1-zen�[0m �[41C�[0m�[36m�[1mUptime�[0m�[0m:�[0m 31 mins�[0m �[41C�[0m�[36m�[1mPackages�[0m�[0m:�[0m 1922 (pacman)�[0m �[41C�[0m�[36m�[1mShell�[0m�[0m:�[0m zsh 5.9�[0m �[41C�[0m�[36m�[1mResolution�[0m�[0m:�[0m 3840x2160, 1920x1080�[0m �[41C�[0m�[36m�[1mWM�[0m�[0m:�[0m bspwm�[0m �[41C�[0m�[36m�[1mTheme�[0m�[0m:�[0m Adwaita [GTK2/3]�[0m �[41C�[0m�[36m�[1mIcons�[0m�[0m:�[0m Adwaita [GTK2/3]�[0m �[41C�[0m�[36m�[1mTerminal�[0m�[0m:�[0m dotnet�[0m �[41C�[0m�[36m�[1mCPU�[0m�[0m:�[0m AMD Ryzen 5 3600 (12) @ 3.600GHz�[0m �[41C�[0m�[36m�[1mGPU�[0m�[0m:�[0m NVIDIA GeForce RTX 2060 Rev. A�[0m �[41C�[0m�[36m�[1mGPU�[0m�[0m:�[0m NVIDIA GeForce GTX 760 OEM�[0m �[41C�[0m�[36m�[1mMemory�[0m�[0m:�[0m 12508MiB / 40052MiB�[0m �[41C�[30m�[40m �[31m�[41m �[32m�[42m �[33m�[43m �[34m�[44m �[35m�[45m �[36m�[46m �[37m�[47m �[m �[41C�[38;5;8m�[48;5;8m �[38;5;9m�[48;5;9m �[38;5;10m�[48;5;10m �[38;5;11m�[48;5;11m �[38;5;12m�[48;5;12m �[38;5;13m�[48;5;13m �[38;5;14m�[48;5;14m �[38;5;15m�[48;5;15m �[m �[?25h�[?7h
@xoofx xoofx added the question label Jul 8, 2023
@xoofx
Copy link
Owner

xoofx commented Jul 8, 2023

Turning this markdown codeblock into HTML throws an argument out of bounds exception:

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
Copy link
Author

What i meant was eg. putting the output of neofetch inside of a fenced codeblock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants