markmap / markmap-vscode

Integrate markmap into VSCode
https://marketplace.visualstudio.com/items?itemName=gera2ld.markmap-vscode
MIT License
228 stars 22 forks source link

How to change the font in the preview page #23

Closed skysin closed 2 years ago

skysin commented 3 years ago

Is there any method to change the font in the preview page? such as fixed-width font?

Hacker tricks are also welcomed.

gera2ld commented 2 years ago

Since v0.0.13 there is a Custom CSS setting so you can override CSS there.

For example:

.markmap-node {
  font-family: monospace;
}

Note that the custom CSS is added to document.head so you need to take care of the priorities.

HaibaraMegumi commented 2 years ago

when i change font, the text dont show all(Monaco and SF Mono both) image