V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
BlackSnow
V2EX  ›  Hexo

hexo 行内公式渲染问题

  •  
  •   BlackSnow · Dec 3, 2024 · 1389 views
    This topic created in 513 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
        1
    yanxin1111  
       Dec 3, 2024
    # Math Formulas Render Support
    math:
    enable: true
    # 默认加载 mathjax,katex 渲染
    per_page: true
    # 此选项开启表示每页博客是否使用 mathjax 是单独指定的。
    # 单独指定需要公式渲染的博客,可以提高平均的加载速率。
    BlackSnow
        2
    BlackSnow  
    OP
       Dec 4, 2024
    @yanxin1111 请问这个意思我需要改到这个 per_page 这个配置吗

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