Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否在markmap中添加自定义字体的设置? #646

Closed
xyz349925756 opened this issue Jun 25, 2024 · 2 comments
Closed

能否在markmap中添加自定义字体的设置? #646

xyz349925756 opened this issue Jun 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@xyz349925756
Copy link

感谢作者开发出这么棒的插件。每次更新 我都会去 plugin\markmap\resource\markmap-view.js 中设置自定义字体。

gt=".markmap{font:300 14px/20px 华康手札体W5P}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign a{color:#0097e6}.markmap-foreign a:hover{color:#00a8ff}.markmap-foreign code{background-color:#f0f0f0;border-radius:2px;color:#555;font-size:calc(1em - 2px);padding:.25em}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:#ffeaa7}

image-20240625164219480

请求作者在配置文件中添加自定义字体这个功能。

@obgnail
Copy link
Owner

obgnail commented Jun 26, 2024

@xyz349925756

你好,感谢反馈。需求已经支持。

  1. 插件升级到最新版本
  2. .\plugin\global\user_styles\ 目录下创建 customize.css(此文件会自动引入到 Typora 中,并且能在一键升级时自动保留该目录下文件)
  3. customize.css 文件写入:
.markmap {
    font:300 14px/20px 华康手札体W5P !important;
}

@obgnail obgnail added the enhancement New feature or request label Jun 26, 2024
@obgnail
Copy link
Owner

obgnail commented Jun 26, 2024

此 issue 关闭,如有问题,麻烦在下面留言或另开 issue。

@obgnail obgnail closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants