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

🐛 fix: 公式无法正确渲染 #201

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yangkeni
Copy link
Contributor

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • ⚡️ perf
  • 📝 docs

🔀 变更说明 | Description of Change

  • 引入katex对应样式,正确渲染markdown内的数学公式

📝 补充信息 | Additional Information

  • 官网
    katex由于没有引入对应的css样式,无法正确渲染,而项目使用pnpm,阻止了直接引用rehype-katex中的katex
image
  • 修改后
    引入katex包,并在markdown中使用对应katex样式,正确渲染
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant