artempyanykh / marksman

Write Markdown with code assist and intelligence in the comfort of your favourite editor.
MIT License
2.07k stars 35 forks source link

Marksman escapes/joins Python-Markdown abbreviations #327

Closed weeheavy closed 2 months ago

weeheavy commented 3 months ago

Background

When trying to define Markdown abbreviations, Marksman does two (IMHO wrong) things on save:

Puts an escape character where none belongs

Current behavior: *[abbr1]: explanation1 becomes \*[abbr1]: explanation1 on save

Expected behavior: *[abbr1]: explanation1 stays as-is on save

Joins multiple abbreviations onto one line

When adding multiple abbreviations, one per line, Marksman joins them while also doing the escaping:

Current behavior: \*[abbr1]: explanation1 \*[abbr2]: explanation2

Expected behavior:

*[abbr1]: explanation1
*[abbr2]: explanation2

Details

weeheavy commented 2 months ago

Sorry, I was wrong. In my setup, prettier is doing the (mis)formatting. There are already open issues in their project: