Skip to content

Instantly share code, notes, and snippets.

@Liam0205
Last active September 9, 2020 16:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Liam0205/8789a1bcb5ecbdcd5681fe0050ca3ffb to your computer and use it in GitHub Desktop.
Save Liam0205/8789a1bcb5ecbdcd5681fe0050ca3ffb to your computer and use it in GitHub Desktop.
md -> tex
\documentclass[UTF8]{ctexart}
\usepackage{zhlipsum}
\usepackage{markdown}
\markdownSetup{
renderers = {
link = {#1}, % Render a link as the link label.
emphasis = {\emph{#1}}, % Render emphasis using `\emph`.
},
hybrid = true,
fencedCode=true,
definitionLists=true,
footnotes=true,
html=true,
pipeTables=true,
preserveTabs=true,
tableCaptions=true,
inlineFootnotes=true,
}
\begin{document}
\begin{markdown}
# 测试
## 正常行文
_Hello,_ $E = mc^2$.
你好 \LaTeX{}!
> 千军万马避白袍。
\zhlipsum
## 代码块
```
\documentclass{article}
\begin{document}
Happy \LaTeX{}ing!
\end{document}
```
Python 当中可用 `print("foobar")` 将内容打印在标准输出。
## 列表
一段文字。
* 无序列表
* 张三
* 李四
一段文字。
1. 有序列表
1. 王五
一段文字。
## 表格
| 序号 | 姓名 |
|-----|-----|
| 1 | 张三 |
| 2 | 李四 |
| 3 | 王五 |
: 测试 \textsc{php}Markdown 风格的三线表
\end{markdown}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment