You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2018/09/13 19:24:12 UTC

[08/12] allura git commit: Add comment

Add comment


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/4d5a6c66
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/4d5a6c66
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/4d5a6c66

Branch: refs/heads/master
Commit: 4d5a6c664bd85772b227cfa7718e2d867910f430
Parents: bda5848
Author: Shalitha <sh...@gmail.com>
Authored: Mon Sep 10 21:03:52 2018 +0530
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu Sep 13 19:18:27 2018 +0000

----------------------------------------------------------------------
 Allura/allura/lib/markdown_extensions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/4d5a6c66/Allura/allura/lib/markdown_extensions.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/markdown_extensions.py b/Allura/allura/lib/markdown_extensions.py
index 7b747b7..180f6f7 100644
--- a/Allura/allura/lib/markdown_extensions.py
+++ b/Allura/allura/lib/markdown_extensions.py
@@ -290,7 +290,7 @@ class ForgeLinkPattern(markdown.inlinepatterns.LinkPattern):
         except IndexError:
             href = m.group(2)
             is_link_with_brackets = True
-            if el.text == 'x' or el.text == ' ':
+            if el.text == 'x' or el.text == ' ': # skip [ ] and [x] for markdown checklist 
                 return '[' + el.text + ']'
         try:
             title = m.group(13)