PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Markdown Previewer - bug in code blocks formatting

Open tomasz-rozanski opened this issue 4 years ago • 3 comments

Environment

Windows build number: 10.0.18363.815
PowerToys version: v0.17.0
PowerToy module for which you are reporting the bug (if applicable):
File Explorer -> Markdown Previewer

If the markdown file contains fenced code blocks (using ```), the preview has an extra space at the beginning of the first line.

Instead of:

Lorem ipsum dolor sit amet, consectetur 
adipisicing elit. Iure at sed fuga, mollitia 
ratione saepe ea voluptatum quos nulla nisi 
beatae aut asperiores explicabo quae omnis 
ullam vero incidunt. Veniam.

we see:

 Lorem ipsum dolor sit amet, consectetur 
adipisicing elit. Iure at sed fuga, mollitia 
ratione saepe ea voluptatum quos nulla nisi 
beatae aut asperiores explicabo quae omnis 
ullam vero incidunt. Veniam.

Here's a screenshot: image

tomasz-rozanski avatar Apr 30 '20 02:04 tomasz-rozanski

I still see this bug in PowerToys v0.25.0. Also note that there is a lot of margin at the end of the code block, making it appear like there is an empty line.

seppestas avatar Nov 09 '20 11:11 seppestas

Is this still an issue with the latest version?

Jay-o-Way avatar Sep 17 '22 13:09 Jay-o-Way

Bug still present in v0.62.1

tomasz-rozanski avatar Sep 17 '22 19:09 tomasz-rozanski

This has been worked on during the 0.80 release cycle. Please update to the latest release: https://github.com/microsoft/PowerToys/releases

jaimecbernardo avatar Apr 08 '24 21:04 jaimecbernardo