madskristensen / WebEssentials2015

A Visual Studio extension for web developers
Other
301 stars 94 forks source link

First code line after list item has wrong font for opening spaces #222

Closed breyed closed 7 years ago

breyed commented 7 years ago

With this markdown:

1. Some list item

        some code
        more code

The lines "some code" and "more code" are not aligned in the editor, although they are fine in the preview window. If you turn on View White Space, you can see that the first three spaces on the line "some code" are in the default font, rather than the code font.

Once you understand what is happening, it's just cosmetics, but until you do, it feels like tabs and spaces are being swapped out or other craziness is happening. This especially happens if you try to align the two lines or insert a paragraph between the list item and the code, which causes the code block to appear to have a mind of its own.

xt0rted commented 7 years ago

The same thing happens when using back ticks to markup text in-line.

This should probably be reported at madskristensen/MarkdownEditor since the markdown editor was removed from WebEssentials.

breyed commented 7 years ago

Reported as madskristensen/MarkdownEditor#53.