allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [08/12] allura git commit: Add comment
Date Thu, 13 Sep 2018 19:24:12 GMT
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 <shalithasuranga@gmail.com>
Authored: Mon Sep 10 21:03:52 2018 +0530
Committer: Dave Brondsema <dbrondsema@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)


Mime
View raw message