mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
4 backslashes are rendered as just 1 #622
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 @jansokoly on GitHub (Aug 29, 2023).
Is there an explanation for why does
Markdown.ToHtml("\\\\contoso.com")output\contoso.com? I would expect it to output 2 backslashes, i.e.\\contoso.com.A workaround seems to be using 6 backslashes
Markdown.ToHtml("\\\\\\contoso.com")to get 2 at output, but I'm trying to understand the logic here and can't find an answer.Executable snippet: https://dotnetfiddle.net/XVxnyQ
With commonmark.js dingus, 4 backslashes result in 2 at output, as predicted:
Markdig 0.32.0.
Thank you.