-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👌 Improve parsing of nested amsmath (#119)
The previous logic was problematic for amsmath blocks nested in other blocs (such as blockquotes) The new parsing code now principally follows the logic in `markdown_it/rules_block/fence.py` (see also https://spec.commonmark.org/0.30/#fenced-code-blocks), except that: 1. it allows for a closing tag on the same line as the opening tag, and 2. it does not allow for an opening tag without closing tag (i.e. no auto-closing)
- Loading branch information
1 parent
637f7e7
commit 3f7fcc6
Showing
2 changed files
with
85 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters