markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Inline code and code blocks should have the same background

Open EuropeanDeveloper opened this issue 3 years ago • 1 comments

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

EuropeanDeveloper avatar Dec 10 '21 19:12 EuropeanDeveloper

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

simov avatar Dec 12 '21 13:12 simov

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

simov avatar Dec 10 '22 17:12 simov