tomtom-international / keepachangelog-manager

Python package allowing you to manage your CHANGELOG.md files
Apache License 2.0
4 stars 5 forks source link

Request to address Markdown quirk with escaping #35

Open matthewdeanmartin opened 4 weeks ago

matthewdeanmartin commented 4 weeks ago

I double checked, "keepachangelog" claims it is a markdown format, which is a bunch of ad hoc formats, so when formatters run against CHANGELOG.md, I get

## \[3.0.0\] - 2023-08-21

and the validator claims there isn't a version number. The formatter is attempting to escape the square brackets because otherwise it looks like an incomplete hyperlink.

Can you update this to regex = re.compile(r"\\?\[(.*?)\\?\](.*)")

Let me know if you'd rather a PR