新环境总担心旧博文的插件会出问题,这个页面里的插件如果没问题的话,其它的也应该没问题。

#flowchart

#安装方法

1
npm i hexo-filter-flowchart --save

#参数配置

_config.yml 中。

1
2
3
flowchart:
raphael: //cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js
flowchart: //flowchart.js.org/flowchart-latest.js

#效果展示

Created with Raphaël 2.3.0确定初始状态(10, 0, 0), 加入队列取出队列头部中的第一个状态此状态是否为空?未找到目标状态是否为目标状态?达到目标状态(5, 5, 0)将所有可能下一步状态加入队列尾部yesnoyesno

图 1 程序流程图

#sub,sup,footnote,ins

#安装方法

1
npm i hexo-renderer-markdown-it --save

#参数配置

_config.yml 中。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
markdown:
render:
html: true
xhtmlOut: false
breaks: true
linkify: true
typographer: true
quotes: "“”‘’"
plugins:
- markdown-it-abbr
- markdown-it-footnote
- markdown-it-ins
- markdown-it-sub
- markdown-it-sup
anchors:
level: 2
collisionSuffix: ""
permalink: false
permalinkClass: header-anchor
permalinkSide: "right"
permalinkSymbol:
case: 1
separator: "-"

#效果展示

#sub

H2O

#sup

x2y2

#footnote

这是一段正文[1]

#ins

inserted

#pdf

#安装方法

1
npm i hexo-pdf --save

#效果展示

#math

#安装方法

1
npm i hexo-math --save

#参数配置

_config.yml 中。

1
2
3
4
5
6
7
8
9
10
11
math:
engine: "mathjax" # or 'katex'
mathjax:
src: custom_mathjax_source
config:
# MathJax config
katex:
css: custom_css_source
js: custom_js_source # not used
config:
# KaTeX config

#效果展示

x˙=σ(yx)y˙=ρxyxzz˙=βz+xy

#math

#安装方法

1
npm i hexo-math --save

#效果展示

G (10,0,0) (10,0,0) (3,7,0) (3,7,0) (10,0,0)->(3,7,0) 1 (7,0,3) (7,0,3) (10,0,0)->(7,0,3) 2 (0,7,3) (0,7,3) (3,7,0)->(0,7,3) 2 (3,4,3) (3,4,3) (3,7,0)->(3,4,3) 4 (7,3,0) (7,3,0) (7,0,3)->(7,3,0) 12 (6,4,0) (6,4,0) (3,4,3)->(6,4,0) 11 (4,3,3) (4,3,3) (7,3,0)->(4,3,3) 2 (6,1,3) (6,1,3) (6,4,0)->(6,1,3) 4 (4,6,0) (4,6,0) (4,3,3)->(4,6,0) 12 (9,1,0) (9,1,0) (6,1,3)->(9,1,0) 11 (1,6,3) (1,6,3) (4,6,0)->(1,6,3) 2 (9,0,1) (9,0,1) (9,1,0)->(9,0,1) 10 (1,7,2) (1,7,2) (1,6,3)->(1,7,2) 6 (2,7,1) (2,7,1) (9,0,1)->(2,7,1) 1 (8,0,2) (8,0,2) (1,7,2)->(8,0,2) 9 (2,5,3) (2,5,3) (2,7,1)->(2,5,3) 4 (8,2,0) (8,2,0) (8,0,2)->(8,2,0) 12 (5,5,0) (5,5,0) (2,5,3)->(5,5,0) 11 (5,2,3) (5,2,3) (8,2,0)->(5,2,3) 2

#markdown 渲染

#有序列表

  • 1
    • 1.1
      • 1.1.1
  • 2
  • 3
  • 4

#无序列表

  1. 1
    1. 1.1
      1. 1.1.1
  2. 2
  3. 3
  4. 4

  1. 这是脚注 ↩︎