Commit Graph

4 Commits

Author SHA1 Message Date
Jeff Dairiki 8e2b686ec2 fix(markdown-link-classes): fix for mistune 2
Mistune 2 does not always pass a `text` or `title` parameter to the
renderer's `link` method. This (when building with the Lektor 3.4
pre-release branch) was resulting in a `"TypeError: link()
missing 2 required positional arguments: 'text' and 'title'"`
exception when rendering /blog/plugin-play (which has a bare URL in
it's markdown content.)
2023-02-26 15:17:30 -08:00
Jeff Dairiki f48eda6ee2 Restore compatibility with mistune==0.8.4
The latest release version of Lektor is 3.3.4.  It does not include
the support for `mistune>=2.0` that has made it into the `master`
branch of Lektor, thus it pins `mistune<2`.

This commit restores compatibility with older versions of
mistune.  (That compatibility was broken by 3fcd062.)
2022-05-02 15:47:17 -07:00
Joseph Nix 3fcd0624e9 Now compatibile with mistune>=2. 2022-04-29 23:10:02 -05:00
Armin Ronacher b5baa037bf Initial commit 2015-12-19 14:52:17 +01:00