Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Markdown handling of # characters
- remove incorrect logic to identify headers - ensure header detection abides by the CommonMark spec rules [1] - remove isBugLink method, which is no longer needed since bug links (i.e. `#number`) are not recognized as a header by the new regex Fixes #22333 [1] http://spec.commonmark.org/0.27/#atx-headings Signed-off-by: Damien Regad <dregad@mantisbt.org> Changes to Joel's original code: squashed 2 commits, reworded commit message as well as the comments within the code.
- Loading branch information
Showing
1 changed file
with
9 additions
and
51 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