Skip to content

[Bug]: Add test and support for links with nested ()s #657

@jimbonothing64

Description

@jimbonothing64

Description of the bug

Bug

Links with ()s do not parse correctly. See uccser/cs-field-guide#2565 (Thanks to @mckzm for spotting this and working on a fix!)

Proposed fix

  • Update python-markdown to 3.0 or greater.
  • Add a test, with link https://en.wikipedia.org/wiki/Entropy_(information_theory)

Background

In uccser/cs-field-guide#2566, the problem links were enclosed in <>, as per Common mark spec. But pyton-markdown uses John Gruber's Spec, which does not support enclosing links in <>.

Using a newer version of python-markdown should fix these problem links, and still conformant to the John Gruber's Spec.

See blame for date fix was added to python-markdown:
https://github.com/Python-Markdown/markdown/blame/7c382f6c5d438d6d6661f842b03f15dbd6e42a2d/markdown/inlinepatterns.py#L449

Steps To Reproduce

Include [Entropy and information theory](https://en.wikipedia.org/wiki/Entropy_(information_theory)) in a template a markdown file and then render it using verto.

What device/software are you seeing this problem on?

No response

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions