simov / markdown-viewer

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

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

Closed EuropeanDeveloper closed 1 year ago

EuropeanDeveloper commented 2 years ago

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

simov commented 2 years ago

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

simov commented 1 year ago

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.