Closed weeheavy closed 2 months ago
When trying to define Markdown abbreviations, Marksman does two (IMHO wrong) things on save:
Current behavior: *[abbr1]: explanation1 becomes \*[abbr1]: explanation1 on save
*[abbr1]: explanation1
\*[abbr1]: explanation1
Expected behavior: *[abbr1]: explanation1 stays as-is on save
When adding multiple abbreviations, one per line, Marksman joins them while also doing the escaping:
Current behavior: \*[abbr1]: explanation1 \*[abbr2]: explanation2
\*[abbr1]: explanation1 \*[abbr2]: explanation2
Expected behavior:
*[abbr1]: explanation1 *[abbr2]: explanation2
Sorry, I was wrong. In my setup, prettier is doing the (mis)formatting. There are already open issues in their project:
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 saveExpected behavior:
*[abbr1]: explanation1
stays as-is on saveJoins 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:
Details