diff options
Diffstat (limited to 'pycco/main.py')
-rw-r--r-- | pycco/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycco/main.py b/pycco/main.py index cde05d7..eeaf816 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -195,7 +195,7 @@ def preprocess(comment, preserve_paths=True, outdir=None): ) comment = re.sub('^([=]+)([^=]+)[=]*\s*$', replace_section_name, comment) - comment = re.sub('[^`]\[\[(.+?)\]\]', replace_crossref, comment) + comment = re.sub('(?<!`)\[\[(.+?)\]\]', replace_crossref, comment) return comment |