markmap/markmap-vscode

How to change the font in the preview page

skysin opened this issue · 2 comments

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

Hacker tricks are also welcomed.

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.

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