Now compatibile with mistune>=2.
This commit is contained in:
parent
7db60f996f
commit
3fcd0624e9
|
@ -20,7 +20,7 @@ default = not
|
||||||
lektor-webpack-support = 0.3
|
lektor-webpack-support = 0.3
|
||||||
lektor-disqus-comments = 0.1
|
lektor-disqus-comments = 0.1
|
||||||
lektor-markdown-header-anchors = 0.1
|
lektor-markdown-header-anchors = 0.1
|
||||||
lektor-markdown-highlighter = 0.1
|
lektor-markdown-highlighter = 0.3.2
|
||||||
lektor-markdown-admonition = 0.1
|
lektor-markdown-admonition = 0.1
|
||||||
lektor-atom = 0.4.0
|
lektor-atom = 0.4.0
|
||||||
lektor-tags = 0.3
|
lektor-tags = 0.3
|
||||||
|
|
|
@ -21,7 +21,7 @@ class MarkdownLinkClassesPlugin(Plugin):
|
||||||
|
|
||||||
def on_markdown_config(self, config, **extra):
|
def on_markdown_config(self, config, **extra):
|
||||||
class LinkClassesMixin(object):
|
class LinkClassesMixin(object):
|
||||||
def link(renderer, link, title, text):
|
def link(renderer, link, text, title):
|
||||||
text, classes = split_classes(text)
|
text, classes = split_classes(text)
|
||||||
if link.startswith('javascript:'):
|
if link.startswith('javascript:'):
|
||||||
link = ''
|
link = ''
|
||||||
|
|
Loading…
Reference in New Issue