From 18ac5a77d6cac527f1822a02fdc041543c01e43c Mon Sep 17 00:00:00 2001 From: Kristinita Date: Thu, 20 Dec 2018 11:11:41 +0300 Subject: [PATCH] fix(markdown3.0) KeyError: configs --- mdx_cite.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mdx_cite.py b/mdx_cite.py index 6f5fc4b..6b24185 100644 --- a/mdx_cite.py +++ b/mdx_cite.py @@ -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 @@ -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'), '