Encode/escape certain Markdown characters inside code blocks and spans where they are literals
(string code)
| 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) |