Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-wiki
Commits
cd1c23e1
Commit
cd1c23e1
authored
Aug 23, 2012
by
Carlos Andrés Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed WikiPath regexp. It was incorrectly matching [Title](Link) on the same line.
parent
7e42bce4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
wiki/plugins/links/mdx/djangowikilinks.py
+2
-3
No files found.
wiki/plugins/links/mdx/djangowikilinks.py
View file @
cd1c23e1
...
...
@@ -49,7 +49,7 @@ class WikiPathExtension(markdown.Extension):
self
.
md
=
md
# append to end of inline patterns
WIKI_RE
=
r'\[(?P<linkTitle>
.
+?)\]\(wiki:(?P<wikiTitle>[a-zA-Z\d\./_-]*)\)'
WIKI_RE
=
r'\[(?P<linkTitle>
[^\]]
+?)\]\(wiki:(?P<wikiTitle>[a-zA-Z\d\./_-]*)\)'
wikiPathPattern
=
WikiPath
(
WIKI_RE
,
self
.
config
,
markdown_instance
=
md
)
wikiPathPattern
.
md
=
md
md
.
inlinePatterns
.
add
(
'djangowikipath'
,
wikiPathPattern
,
"<reference"
)
...
...
@@ -135,4 +135,4 @@ def makeExtension(configs=None) :
if
__name__
==
"__main__"
:
import
doctest
doctest
.
testmod
()
\ No newline at end of file
doctest
.
testmod
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment