dprint / dprint-plugin-markdown

Markdown code formatting plugin for dprint.
MIT License
29 stars 9 forks source link

Image tag is incorrectly assumed to be a link reference #51

Closed joscha closed 3 years ago

joscha commented 3 years ago

Version 0.9.5:

Example:

1. Test ![image is](./wrongly/assumed_to_be_link_reference.png)

You can try it here: https://dprint.dev/playground/#code/FDCMDoAIBUFMGcAukCEBtAlgWwIYHNZIN4BdACnAHoB3AJwHsA7PAGwE9Kd54BXLWACYB9RPSEAjWEJYZGAayG1YAM1hLGAY1jgADswCUQA/language/markdown

it yields:

Line 3, column 63: Unexpected token `)` while parsing link reference definition.

  e_link_reference.png)
dsherret commented 3 years ago

@joscha thanks for reporting these issues! They are fixed in 0.9.6 (just releasing now).

joscha commented 3 years ago

Thank you!