Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions mdx_cite.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@
2011, 2012 [The active archives contributors](http://activearchives.org/)
All rights reserved.

This software is released under the modified BSD License.
This software is released under the modified BSD License.
See LICENSE.md for details.
'''


import markdown

from markdown.inlinepatterns import SimpleTagPattern


Expand All @@ -45,11 +46,13 @@ class CiteExtension(markdown.extensions.Extension):

def extendMarkdown(self, md, md_globals):
"""Modifies inline patterns"""
md.inlinePatterns.add('cite', SimpleTagPattern(CITE_RE, 'cite'), '<not_strong')
md.inlinePatterns.add(
'cite', SimpleTagPattern(
CITE_RE, 'cite'), '<not_strong')


def makeExtension(configs={}):
return CiteExtension(configs=dict(configs))
def makeExtension():
return CiteExtension()


if __name__ == "__main__":
Expand Down