simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.02k stars 132 forks source link

Inline code and code blocks should have the same background #163

Closed EuropeanDeveloper closed 1 year ago

EuropeanDeveloper commented 2 years ago

Inline code and code blocks should have the same background. It is more uniform and looks better in markdowns that contains both variants.

For example:

`git config --global user.name "Sam Smith"`

```batch
git config --global user.name "Sam Smith"
\```

is rendered in Markdown Viewer 4.0 with GITHUB theme like this:

picture1

The same code formatted by GitHub:

picture2

Browser: Mozilla Firefox 95.0

simov commented 2 years ago

I see, this is because the code blocks are being rendered using Prism.js

simov commented 1 year ago

This was fixed in Markdown Viewer v5, you can download it from the Chrome Web Store or the releases section here.