hackmd 第一篇文章

hackmd 第一篇文章

hackmd.io
很方便的同步 github 的仓库里的 md 文章,
写起来还是挺舒服的

简单修改

支持数学公式

1
2
3
4
5
6
7
8
9
10
yarn add hexo-filter-mathjax
# _config.yml 添加配置,使用方式看文章下方的“数学公式”章节
# ps: 文章页meta信息添加:mathjax: true
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

支持 Graphviz

1
yarn add https://github.com/dwatow/hexo-filter-viz.git

代码块

1
2
3
4
5
6
import os
class TestClass:
foo='bar'

if __name__ == '__main__':
print("hello world")

表格

Column 1 Column 2 Column 3
Text Text Text

图片

链接

google

列表

  1. 项目 1
  2. 项目 2
  • 条目 1
  • 条目 2
  • todo1
  • todo2

数学公式

流程圖

您可以像是以下使用流程圖:

Graphviz

1
2
3
4
5
6
7
8
9
10
11
12
digraph hierarchy {

nodesep=1.0 // increases the separation between nodes

node [color=Red,fontname=Courier,shape=box] //All nodes will this shape and colour
edge [color=Blue, style=dashed] //All the lines look like this

Headteacher->{Deputy1 Deputy2 BusinessManager}
Deputy1->{Teacher1 Teacher2}
BusinessManager->ITManager
{rank=same;ITManager Teacher1 Teacher2} // Put them on the same level
}