simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.01k stars 131 forks source link

Please support loading custom CSS styles #223

Closed zhouxinghong closed 2 months ago

zhouxinghong commented 6 months ago

Please support loading custom CSS styles

Hello! The extension performs great! Please support loading custom CSS styles so that the extension can meet more usage scenarios.

System environment: Chrome is up to date Version 120.0.6099.110 (Official Build) (64-bit) Windows 10 Extended version: 5.2.1

zhouxinghong commented 6 months ago

Thank you very much for providing a super excellent Markdown preview extension! 👍😜🎉

simov commented 2 months ago

Custom theme support landed in v5.3, have a look at the documentation

When you select the CUSTOM theme at the bottom of the themes dropdown you get a blank theme. Then you can add a style tag in your markdown and create your own theme, here is an example. Once you are ready go to the Advanced Options page and click on Settings in the header, if the CUSTOM theme is selected there will be a button below to select your .css file and make it permanent. Don't forget to remove the inline tag from your document. You can also update or remove the uploaded custom theme.