SmartyPants: even occurrences of double quotes are not recognized #173

Open
opened 2026-01-29 14:29:28 +00:00 by claunia · 0 comments
Owner

Originally created by @AlekseyMartynov on GitHub (Dec 13, 2017).

0.14.8

var p = new MarkdownPipelineBuilder()
    .UseSmartyPants()
    .Build();

var html = Markdown.ToHtml("\"aaa\" - \"bbb\" - \"ccc\" - \"ddd\"", p);

html is <p>&ldquo;aaa&rdquo; - &quot;bbb&quot; - &ldquo;ccc&rdquo; - &quot;ddd&quot;</p>

Note the alternation of ldquo-rdquo and quot-quot

Originally created by @AlekseyMartynov on GitHub (Dec 13, 2017). 0.14.8 ```c# var p = new MarkdownPipelineBuilder() .UseSmartyPants() .Build(); var html = Markdown.ToHtml("\"aaa\" - \"bbb\" - \"ccc\" - \"ddd\"", p); ``` `html` is `<p>&ldquo;aaa&rdquo; - &quot;bbb&quot; - &ldquo;ccc&rdquo; - &quot;ddd&quot;</p> ` Note the alternation of `ldquo-rdquo` and `quot-quot`
claunia added the bugPR Welcome! labels 2026-01-29 14:29:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#173