Skip to content

Commit

Permalink
feat(render): switch to Pandoc for math rendering support
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostFrankWu committed Apr 29, 2024
1 parent 4d12dae commit 3fce95d
Show file tree
Hide file tree
Showing 4 changed files with 2,349 additions and 2,298 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Install dependencies
run: |
npm i -g pnpm hexo-cli
sudo apt install pandoc
pnpm install
- name: Static HTML export with Hexo
Expand Down
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,12 @@ theme: icarus
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: ''

# Math Formulas Render Support
mathjax:
tags: none # or 'ams' or 'all'
single_dollars: true # enable single dollar signs as in-line math delimiters
cjk_width: 0.9 # relative CJK char width
normal_width: 0.6 # relative normal (monospace) width
append_css: true # add CSS to pages rendered by MathJax
every_page: false # if true, every page will be rendered by MathJax regardless the `mathjax` setting in Front-matter
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"server": "hexo server"
},
"hexo": {
"version": "7.1.1"
"version": "7.2.0"
},
"dependencies": {
"@babel/preset-env": "^7.24.0",
Expand All @@ -19,6 +19,7 @@
"hexo": "^7.0.0",
"hexo-component-inferno": "^3.0.0",
"hexo-filter-auto-spacing": "^0.2.1",
"hexo-filter-mathjax": "^0.9.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
Expand All @@ -27,7 +28,7 @@
"hexo-pagination": "^3.0.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-inferno": "^1.0.2",
"hexo-renderer-marked": "^6.0.0",
"hexo-renderer-pandoc": "^0.4.0",
"hexo-renderer-stylus": "^3.0.1",
"hexo-server": "^3.0.0",
"hexo-theme-icarus": "github:S1uM4i/hexo-theme-icarus",
Expand All @@ -37,4 +38,4 @@
"moment": "^2.30.1",
"semver": "^7.6.0"
}
}
}
Loading

0 comments on commit 3fce95d

Please sign in to comment.