[TOC]
< !–more–>
Content
Put [TOC]
in the position where you want to generate content. This it can caputere headings(heading 1-6) automaticly.
Table
1 | |heading one|heading two| headng three| |
Code
Inline
Embed code into text and sentences with ‘``’. text your code/command
text.
Block
Format
1 | ```language {cmd=yourcmd, option1=value1, op2=v2,...} |
options:
- cmd: do you run the code? (if running, there will be results)
- hide: do you hide the code?
- output: html/text/markdown/png
- other options
Python
- default(no commands)
source code:
1 | ```python |
display after markdown rendering:
1 | print("hello world") |
- run code
source code:
1 | ```python {cmd=true} |
display after markdown rendering:
- run and hide code (only display running results)
source code:
1 | ```python {cmd hide}s |
- matplotlib
- set
matplotlib=true
- cmd=true/your_interpreter_path
source code:
1 | ```python {cmd="D:/software/anaconda/next/envs/LiziX/python.exe" matplotlib=true} |
Bash
source code:
1 | ```bash |
display after markdown rendering:
1 | hexo s |
Mermaid
Plase click blog 3.
Math
- support LaTex math syntax
- inline:
$math_formula$
or\(math_formula\)
- block:
$$math_formula$$
or\[math_formula\]
1 | ```markdown |