mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #452] Bug/parsing math #1040
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?
Original Pull Request: https://github.com/xoofx/markdig/pull/452
State: closed
Merged: Yes
This fixes #451
Before my change the parser would look to see if the next character after the
or$ was a digit. It would then fail to match if it was a digit, which means that$x$would be a valid math block but$2x$would not be.I simply removed this check as
$2x$should be valid, but it still allows$ 2x $in order to be backwards compatible.I also changed the WebApi project comment that specified that the second parameter should be extensions, where as actually it should just be extension as per the controller method definition. This confused me when I was trying to replicate the bug.