Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
0fed8aa8
Commit
0fed8aa8
authored
Jan 14, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
238ed768
f840e241
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
6 deletions
+0
-6
simplewiki/mdx_camelcase.py
+0
-2
simplewiki/mdx_circuit.py
+0
-2
simplewiki/models.py
+0
-1
simplewiki/settings.py
+0
-1
No files found.
simplewiki/mdx_camelcase.py
View file @
0fed8aa8
#!/usr/bin/env python
print
"Hello"
'''
WikiLink Extention for Python-Markdown
======================================
...
...
simplewiki/mdx_circuit.py
View file @
0fed8aa8
...
...
@@ -30,7 +30,6 @@ class CircuitExtension(markdown.Extension):
md
.
inlinePatterns
.
add
(
name
,
pattern
,
"<reference"
)
def
extendMarkdown
(
self
,
md
,
md_globals
):
print
"Here"
self
.
add_inline
(
md
,
'circuit'
,
CircuitLink
,
r'^circuit:(?P<name>[a-zA-Z0-9]*)$'
)
class
CircuitLink
(
markdown
.
inlinepatterns
.
Pattern
):
...
...
@@ -43,5 +42,4 @@ class CircuitLink(markdown.inlinepatterns.Pattern):
def
makeExtension
(
configs
=
None
)
:
print
"Here"
return
CircuitExtension
(
configs
=
configs
)
simplewiki/models.py
View file @
0fed8aa8
...
...
@@ -247,7 +247,6 @@ class Revision(models.Model):
# Create pre-parsed contents - no need to parse on-the-fly
ext
=
WIKI_MARKDOWN_EXTENSIONS
print
"Waka"
,
WIKI_MARKDOWN_EXTENSIONS
ext
+=
[
"wikilinks(base_url=
%
s/)"
%
reverse
(
'wiki_view'
,
args
=
(
''
,))]
self
.
contents_parsed
=
markdown
(
self
.
contents
,
extensions
=
ext
,
...
...
simplewiki/settings.py
View file @
0fed8aa8
...
...
@@ -94,7 +94,6 @@ WIKI_MARKDOWN_EXTENSIONS = getattr(settings, 'SIMPLE_WIKI_MARKDOWN_EXTENSIONS',
'circuit'
])
print
WIKI_MARKDOWN_EXTENSIONS
WIKI_IMAGE_EXTENSIONS
=
getattr
(
settings
,
'SIMPLE_WIKI_IMAGE_EXTENSIONS'
,
...
...
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