Skip to content

Instantly share code, notes, and snippets.

@Vaduz
Last active April 7, 2021 00:00
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vaduz/229922da122f6b7166ea3087bf282f14 to your computer and use it in GitHub Desktop.
Save Vaduz/229922da122f6b7166ea3087bf282f14 to your computer and use it in GitHub Desktop.
IntelliJ IDEA Markdown Plugin Custom CSS for preview
body {
font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
font-size: 85%;
}
@Vaduz
Copy link
Author

Vaduz commented Sep 10, 2018

Go to IntelliJ IDEA Settings. Languages & Frameworks -> Markdown. And then check Add CSS rules and paste it.

@PJaros
Copy link

PJaros commented Jul 8, 2019

You need to write

font-size: 85% !important;

to set a new font-size.

I couldn't set the font-size to a smaller size. Amongst the things I've tried was this Gist. Now that I have found the solution from Stackoverflow - How do you change the Markdown preview font size in IntelliJ IDEA? I thought you (and maybe some future visitors) might be interested.

CU :)

@Vaduz
Copy link
Author

Vaduz commented Jul 9, 2019

Hmm, this css is still working for me without writing !important or font-family.
But I changed markdown preview plugin to "Markdown Navigator" which is more customizable and better syntax highlight though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment