MantisBT: master-2.2 e4c0cceb

Author Committer Branch Timestamp Parent
Joel C. Llano dregad master-2.2 2017-03-06 04:02 master-2.2 ca40d68e
Affected Issues  0022333: Markdown starts heading in the middle of a line
Changeset

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 0022333

[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.

mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php Diff File