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

希望markdown文本渲染自定义 #352

Open
coldowl opened this issue Nov 26, 2023 · 3 comments
Open

希望markdown文本渲染自定义 #352

coldowl opened this issue Nov 26, 2023 · 3 comments
Labels
功能 新功能或需求

Comments

@coldowl
Copy link

coldowl commented Nov 26, 2023

  • 是否为已有功能:否
  • 建议阐述:你好,作者大大,我是一个博客作者,我发现本主题的文档渲染样式主要是在 assets/dist/style/libs.min.css等文件里,内容太过臃肿,希望能把与markdown相关的代码独立出来,便于用户自定义文章里标题、代码、字体等样式,个人觉得比打额外css补丁要更好更高效。
@coldowl coldowl added the 功能 新功能或需求 label Nov 26, 2023
@Licoy
Copy link
Owner

Licoy commented Nov 28, 2023

主题本身没有集成markdown的功能,是需要用户自行安装对应的markdown插件来实现功能的

@coldowl
Copy link
Author

coldowl commented Nov 29, 2023

我明白您的意思,但我是想说css的问题,例如:markdown文章里的二级标题## 性能指标最终会变成<h2 class="md-end-block md-heading">性能指标</h2>,再通过style.min.css里的.entry-content-box h2 {font-size: 24px;}等渲染出来。当我想要修改标题字体的时候,我只想改变文章标题的样式,而不希望改掉主题全局标题的样式。我不知道该怎么做,有插件能做到吗?

@Licoy
Copy link
Owner

Licoy commented Nov 29, 2023

你可以自定义全局CSS实现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
功能 新功能或需求
Projects
None yet
Development

No branches or pull requests

2 participants