BlackSnow
V2EX  ›  Hexo

hexo 行内公式渲染问题

  •  
  •   BlackSnow · Dec 3, 2024 · 2013 views
    This topic created in 716 days ago, the information mentioned may be changed or developed.

    如题,用的 next 主题 已做以下修改

    • npm set
    npm uninstall hexo-renderer-marked
    
    npm install hexo-renderer-pandoc
    
    • _post formatter 设置

    mathjax: true

    • config.yaml
    per_page:true
    
      mathjax:
        enable: true
    

    求 V 友解惑

    4 replies  •  2024-12-08 22:03:52 +08:00
    yanxin1111
    yanxin1111
    Dec 3, 2024
    1
    # Math Formulas Render Support
    math:
    enable: true
    # 默认加载 mathjax,katex 渲染
    per_page: true
    # 此选项开启表示每页博客是否使用 mathjax 是单独指定的。
    # 单独指定需要公式渲染的博客,可以提高平均的加载速率。
    BlackSnow
    BlackSnow
    OP
    Dec 4, 2024
    2
    @yanxin1111 请问这个意思我需要改到这个 per_page 这个配置吗

    但是我理解的我这边没感觉有什么问题
    yanxin1111
    yanxin1111
    Dec 5, 2024
    3
    @BlackSnow 都试试呗
    BlackSnow
    BlackSnow
    OP
    Dec 8, 2024
    4
    感谢大佬,最后实在搞不定了。用了 markdownit 了 T_T
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1528 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:39 · PVG 00:39 · LAX 08:39 · JFK 11:39
    ♥ Do have faith in what you're doing.