diff --git a/src/Markdig.WebApp/ApiController.cs b/src/Markdig.WebApp/ApiController.cs index 832ed012..4bbbb09c 100644 --- a/src/Markdig.WebApp/ApiController.cs +++ b/src/Markdig.WebApp/ApiController.cs @@ -13,7 +13,7 @@ namespace Markdig.WebApp return string.Empty; } - // GET api/to_html?text=xxx&extensions=advanced + // GET api/to_html?text=xxx&extension=advanced [Route("api/to_html")] [HttpGet()] public object Get([FromQuery] string text, [FromQuery] string extension) diff --git a/src/Markdig/Extensions/Mathematics/MathInlineParser.cs b/src/Markdig/Extensions/Mathematics/MathInlineParser.cs index 5b6f2088..c237dd6a 100644 --- a/src/Markdig/Extensions/Mathematics/MathInlineParser.cs +++ b/src/Markdig/Extensions/Mathematics/MathInlineParser.cs @@ -50,14 +50,12 @@ namespace Markdig.Extensions.Mathematics c = slice.NextChar(); } - bool openNextIsDigit = c.IsDigit(); pc.CheckUnicodeCategory(out bool openPrevIsWhiteSpace, out bool openPrevIsPunctuation); c.CheckUnicodeCategory(out bool openNextIsWhiteSpace, out _); // Check that opening $/$$ is correct, using the different heuristics than for emphasis delimiters - // If a $/$$ is not preceded by a whitespace or punctuation, or followed by a digit - // this is a not a math block - if ((!openPrevIsWhiteSpace && !openPrevIsPunctuation) || openNextIsDigit) + // If a $/$$ is not preceded by a whitespace or punctuation, this is a not a math block + if ((!openPrevIsWhiteSpace && !openPrevIsPunctuation)) { return false; }