mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 01:54:06 +00:00
add latex support; activate when latex: true is set in markdown file
This commit is contained in:
17
README.md
17
README.md
@@ -56,7 +56,7 @@ summary: "The summary content"
|
||||
---
|
||||
```
|
||||
|
||||
### Approch 2: use <!--more-->
|
||||
### Approch 2: use `<!--more-->`
|
||||
Use `<!--more-->` to seperate content that will display in the posts page as abstraction and the rest of the content. This is different from summary, as summary will not appear in the post.
|
||||
```
|
||||
---
|
||||
@@ -69,6 +69,21 @@ abstraction show in the post page
|
||||
other content
|
||||
```
|
||||
|
||||
## Support LaTex
|
||||
In you post add `katex:true` to [front matter](https://gohugo.io/content-management/front-matter/)
|
||||
```
|
||||
---
|
||||
katex: true
|
||||
---
|
||||
```
|
||||
Then the [katex script](https://katex.org/docs/autorender.html) will auto render the string enclosed be delimiters.
|
||||
```
|
||||
# replace ... with latex formula
|
||||
display inline \\( ... \\)
|
||||
display block $$ ... $$
|
||||
```
|
||||

|
||||
|
||||
## config.toml example
|
||||
|
||||
```toml
|
||||
|
Reference in New Issue
Block a user