cristianvasquez / obsidian-prettify

A markdown prettifier for obsidian
GNU General Public License v3.0
129 stars 12 forks source link

Fenced code in lists is malformed #93

Open vasekbrychta opened 2 years ago

vasekbrychta commented 2 years ago

Hello, I'm using fenced code inside lists and running prettifier malforms this fenced code blocks. It's indenting them as a code blocks that are not fenced, i.e. it adds one more level of indentation.

Before the prettifier runs: before

After the prettifier runs: after

Here's a gist with some good and bad examples of fenced code inside lists.

vasekbrychta commented 2 years ago

And now I noticed that it's adding backticks when run multiple times.

After running it twice from the original state I get this: after_2_runs

After running it for the third time, another backticks appear: after_3_runs

And so on...