qjebbs / vscode-markdown-extended

Extended syntaxes to built-in markdown & What you see is what you get exporter.
MIT License
123 stars 25 forks source link

Feature request: separate option to set the css file used when exporting. #148

Closed sandyowlet closed 1 year ago

sandyowlet commented 1 year ago

I hope to add a separate option to set the css file used when exporting.

for example: In this version of the extension, if I want to change the style of the exported file, I have to set the markdown preview style to use a css file. But sometimes the color that looks clear under the default dark theme will look blurry under the exported default light theme. Especially I like to edit in dark theme, but work requires me to export to light mode. Therefore, I must set the custom css to take effect when exporting, and switch back to the default style after exporting.

As shown in the next picture: Snipaste_2023-04-03_23-59-43 Nice colors in dark theme. Snipaste_2023-04-03_23-59-57 This color is very harsh in the exported file.

So in this case, I want to apply my custom css only on output, and use vscode's default style on preview.

sandyowlet commented 1 year ago

I found a solution to my problem, using the settings @media screen/print to set the format when exporting to html and pdf