diff --git a/pagure/pfmarkdown.py b/pagure/pfmarkdown.py index 363e94b..9fe6ddf 100644 --- a/pagure/pfmarkdown.py +++ b/pagure/pfmarkdown.py @@ -22,8 +22,10 @@ Author: Ralph Bean import flask import markdown.inlinepatterns +import markdown.preprocessors import markdown.util import pygit2 +import re import pagure.lib from pagure.config import config as pagure_config @@ -51,7 +53,10 @@ COMMIT_LINK_RE = \ '([a-zA-Z0-9_-]*?/)?'\ '([a-zA-Z0-9_-]+)'\ '#(?P[\w]{40})' -IMPLICIT_ISSUE_RE = r'(?pingou/ns/test#8 is private

', + # 'implicit link to #1', + '

implicit link to #1

', + # 'implicit link .#1. with non-whitespace, non-word characters', + '

implicit link .#1. with non-whitespace, non-word characters

', + # '#2 - implicit link at start of line', + '

#2 - implicit link at start of line

', + # '#2. implicit link at start of line with no whitespace after', + '

#2. implicit link at start of line with no whitespace after

', + # '#regular header', + '

regular header

', + # '#34 looks like an implicit link, but no issue 34', + '

34 looks like an implicit link, but no issue 34

', # 'pingou committed on test#9364354a4555ba17aa60f0dc844d70b74eb1aecd', '

pingou committed on