MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / EncodeCode

Method EncodeCode

src/Squirrel/MarkdownSharp.cs:1569–1572  ·  view source on GitHub ↗

Encode/escape certain Markdown characters inside code blocks and spans where they are literals

(string code)

Source from the content-addressed store, hash-verified

1567 /// Encode/escape certain Markdown characters inside code blocks and spans where they are literals
1568 /// </summary>
1569 private string EncodeCode(string code)
1570 {
1571 return _codeEncoder.Replace(code, EncodeCodeEvaluator);
1572 }
1573 private string EncodeCodeEvaluator(Match match)
1574 {
1575 switch (match.Value)

Callers

nothing calls this directly

Calls 1

ReplaceMethod · 0.45

Tested by

no test coverage detected