wangchucheng / hugo-eureka

Eureka is a feature-rich and highly customizable Hugo theme.
https://www.wangchucheng.com/en/docs/hugo-eureka/
Apache License 2.0
923 stars 192 forks source link

按照文档配置后仍然无法渲染代码高亮与数学公式 #163

Closed Deruck closed 2 years ago

Deruck commented 2 years ago

如题

相关配置如下

highlight:
  handler: highlightjs

  highlightjs:
    # highlight.js doesn't bundle every language. So please specify additional languages you want here.
    # See https://github.com/highlightjs/cdn-release/tree/master/build/languages for available languages.
    languages:
      - dart
      - cpp
      - python
    # See https://github.com/highlightjs/cdn-release/tree/master/build/styles for available styles.
    style: vs2015

math:
  handler: katex

  # katex:
  #   # Browse https://katex.org/docs/options.html to see the options available.
  #   # KaTeX's Auto-render ignores `displayMode` property of the options, so this property will not work.
  #   # You can list the key and value you want as below.
  #   # Because Hugo's config params are case-insensitive, you need to add `-` or `_` before the uppercase letters.
  #   # For example, `throwOnError` should be written as `throw-On-Error` or other acceptable formats.
  #   leqno:

实在不知道是哪里出了问题。。求助,谢谢!

Deruck commented 2 years ago

又排查了一天,似乎是因为jsdelivr挂了的缘故?

wangchucheng commented 2 years ago

目前我使用默认配置可以正常使用katex渲染公式,可以主要排查网络问题,祝好!