GithubHelp home page GithubHelp logo

Comments (8)

yiyungent avatar yiyungent commented on June 20, 2024

package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server"
  },
  "hexo": {
    "version": "5.2.0"
  },
  "dependencies": {
    "@next-theme/plugins": "^8.7.0",
    "@waline/hexo-next": "^2.0.5",
    "hexo": "^5.0.0",
    "hexo-asset-img": "^1.0.0",
    "hexo-cloud": "^0.1.1",
    "hexo-deployer-git": "^2.1.0",
    "hexo-encrypt-token": "^4.2.0",
    "hexo-filter-mathjax": "^0.8.0",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-feed": "^3.0.0",
    "hexo-generator-index": "^2.0.0",
    "hexo-generator-json-content": "^4.2.3",
    "hexo-generator-searchdb": "^1.4.0",
    "hexo-generator-sitemap": "^2.1.0",
    "hexo-generator-tag": "^1.0.0",
    "hexo-related-popular-posts": "^5.0.1",
    "hexo-renderer-ejs": "^1.0.0",
    "hexo-renderer-pandoc": "^0.3.0",
    "hexo-renderer-stylus": "^2.0.0",
    "hexo-server": "^2.0.0",
    "hexo-symbols-count-time": "^0.7.1",
    "hexo-theme-next": "^8.10.0"
  }
}

from hexo-filter-mathjax.

yiyungent avatar yiyungent commented on June 20, 2024

我用的 GitHub Action 安装 pandoc, 因此每次应该是最新的: 2.9.2.1

apt-get install pandoc

https://packages.ubuntu.com/impish/pandoc

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on June 20, 2024

这是 pandoc 的问题,我们修不了。

from hexo-filter-mathjax.

yiyungent avatar yiyungent commented on June 20, 2024

这是 pandoc 的问题,我们修不了。

我卸载了此插件,再次使用 hexo-renderer-pandoc 是没问题的,https://moeci.com/posts/Ant-Colony-Algorithm/,
只是使用这个插件就不行了,建议文档里标注一下吧,让更多人知道,不过好像原理不一样吧,毕竟 Mathjax 通过 js 在前端渲染,我也不太清楚

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on June 20, 2024

我自己的测试显示,pandoc 的默认设置对引用块内\( \)的处理与预期不符。你可以禁用全部数学插件,直接用 pandoc 渲染以下内容

> $\alpha$
> \(\alpha\)

from hexo-filter-mathjax.

yiyungent avatar yiyungent commented on June 20, 2024

感谢!是指先卸载 hexo-renderer-pandoc 吗?
上次测试确实没卸载这个,而是禁用 NexTMathjax 后安装 hexo-filter-mathjax 配置下就完了,后面我试试吧

from hexo-filter-mathjax.

yiyungent avatar yiyungent commented on June 20, 2024
> \(\alpha\)

这种我就没用过,图片上的是 网页效果,就使用 hexo-filter-mathjax 后的效果,
> $\alpha$ 变成了 > \(\alpha\)

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on June 20, 2024

这样么……但我自己用下面这种语法

> $\alpha$

是完全正常的。可能是其它的插件冲突了。

from hexo-filter-mathjax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.