mirror of
https://github.com/tylernguyen/wiki.git
synced 2025-02-05 08:23:14 -06:00
feat: KaTeX support
This commit is contained in:
parent
ed98f1a37b
commit
e8034197ba
2 changed files with 21 additions and 6 deletions
10
docs/javascripts/katex.js
Normal file
10
docs/javascripts/katex.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
document$.subscribe(({ body }) => {
|
||||||
|
renderMathInElement(body, {
|
||||||
|
delimiters: [
|
||||||
|
{ left: "$$", right: "$$", display: true },
|
||||||
|
{ left: "$", right: "$", display: false },
|
||||||
|
{ left: "\\(", right: "\\)", display: false },
|
||||||
|
{ left: "\\[", right: "\\]", display: true },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
});
|
17
mkdocs.yml
17
mkdocs.yml
|
@ -67,8 +67,7 @@ theme:
|
||||||
tag:
|
tag:
|
||||||
default: octicons/tag-16
|
default: octicons/tag-16
|
||||||
Evergreen: material/leaf
|
Evergreen: material/leaf
|
||||||
video-games: material/microsoft-xbox-controller
|
MTG: material/cards
|
||||||
board-games: material/chess-pawn
|
|
||||||
palette:
|
palette:
|
||||||
- media: "(prefers-color-scheme)"
|
- media: "(prefers-color-scheme)"
|
||||||
scheme: default
|
scheme: default
|
||||||
|
@ -112,27 +111,31 @@ extra:
|
||||||
link: https://tylernguyen.codes/explore/repos
|
link: https://tylernguyen.codes/explore/repos
|
||||||
tags:
|
tags:
|
||||||
Evergreen: Evergreen
|
Evergreen: Evergreen
|
||||||
Video Games: video-games
|
MTG : MTG
|
||||||
Board Games: board-games
|
|
||||||
|
|
||||||
extra_css:
|
extra_css:
|
||||||
- stylesheets/solarized.css
|
- stylesheets/solarized.css
|
||||||
- stylesheets/fonts.css
|
- stylesheets/fonts.css
|
||||||
- stylesheets/colors.css
|
- stylesheets/colors.css
|
||||||
|
- https://unpkg.com/katex@0/dist/katex.min.css
|
||||||
|
|
||||||
extra_javascript:
|
extra_javascript:
|
||||||
- https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js
|
- https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js
|
||||||
- javascripts/tablesort.js
|
- javascripts/tablesort.js
|
||||||
- https://unpkg.com/mermaid@10.9.1/dist/mermaid.min.js
|
- https://unpkg.com/mermaid@10.9.1/dist/mermaid.min.js
|
||||||
|
- javascripts/katex.js
|
||||||
|
- https://unpkg.com/katex@0/dist/katex.min.js
|
||||||
|
- https://unpkg.com/katex@0/dist/contrib/auto-render.min.js
|
||||||
|
|
||||||
watch:
|
watch:
|
||||||
- includes
|
- includes
|
||||||
|
|
||||||
# ANCHOR Plugins
|
# ANCHOR Plugins
|
||||||
plugins:
|
plugins:
|
||||||
- meta # NOTE Located at the beginning of the list of `plugins` so that other plugins (including the [built-in blog plugin]) will pick up the set defaults
|
- meta # NOTE Located at the beginning of the list of `plugins` so that other pluginps (including the [built-in blog plugin]) will pick up the set defaults
|
||||||
- blog:
|
- blog:
|
||||||
blog_dir: .
|
blog_dir: .
|
||||||
|
# blog_toc: true # NOTE TOC on blog index
|
||||||
archive_toc: true
|
archive_toc: true
|
||||||
draft_if_future_date: true
|
draft_if_future_date: true
|
||||||
post_excerpt: required
|
post_excerpt: required
|
||||||
|
@ -274,6 +277,8 @@ markdown_extensions:
|
||||||
- tools.collapse_code:
|
- tools.collapse_code:
|
||||||
expand_text: ''
|
expand_text: ''
|
||||||
collapse_text: ''
|
collapse_text: ''
|
||||||
|
- pymdownx.arithmatex:
|
||||||
|
generic: true
|
||||||
|
|
||||||
# ANCHOR Navigation tree
|
# ANCHOR Navigation tree
|
||||||
nav:
|
nav:
|
||||||
|
@ -313,7 +318,7 @@ nav:
|
||||||
- dotfiles.md
|
- dotfiles.md
|
||||||
- hardware.md
|
- hardware.md
|
||||||
- peripherals.md
|
- peripherals.md
|
||||||
- tools.md
|
- workshop.md
|
||||||
- software.md
|
- software.md
|
||||||
- services.md
|
- services.md
|
||||||
- self-hosted.md
|
- self-hosted.md
|
||||||
|
|
Loading…
Reference in a new issue