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

Code blocks should have the same background, font size and type

Open EuropeanDeveloper opened this issue 3 years ago • 1 comments

Code blocks without defined language should have the same background, font size and font type as code blocks for the rest of languages. It is more uniform and looks better in markdowns with codes in multiple languages.

For example:

\```
  Something
\```

\```text
  Something
\```

\```batch
  rem Something
\```

\```html
  <!-- Something -->
\```

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

Again that's styled by Prism.js, but thanks for the feedback.

simov avatar Dec 12 '21 13:12 simov

That was fixed in Markdown Viewer v5, however, the Firefox release will come up later this year once they implement the support for Service Workers in manifest v3, so stay tuned for that.

simov avatar Dec 10 '22 17:12 simov