Now compatibile with mistune>=2.

This commit is contained in:
Joseph Nix 2022-04-29 23:08:18 -05:00
parent f4ab175038
commit c8fdf5ae4b
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ default = no
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

View File

@ -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 = ''