Skip to content

Markdownify conversion results in extra \ before end parentheses )  #140

@wunken

Description

@wunken

Example:

from markdownify import markdownify as md

example_html = '<h2>Example Heading (Heading 2)</h2>'
mdtxt = md(example_html, heading_style = 'ATX')

>>> ## Example Heading (Heading 2\)

It doesn't consistently happen; sometimes end parentheses in headings have no issues.

So far I haven't seen this happen within p tags, but I have seen some periods (.) get converted into \. in p tags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions