Skip to content

Commit

Permalink
Merge pull request #113 from daira/katex
Browse files Browse the repository at this point in the history
Support KaTeX
  • Loading branch information
nathan-at-least authored Dec 6, 2023
2 parents 9167f02 + d3b6f83 commit 15d2d50
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/merge-acceptance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: [email protected]
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: [email protected]
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: [email protected]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/render-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: [email protected]
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: [email protected]
- uses: taiki-e/cache-cargo-install-action@v1
with:
tool: [email protected]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ git config --local core.hooksPath git-hooks

- `cargo install mdbook`
- `cargo install mdbook-graphviz`
- `cargo install mdbook-katex`
- `cargo install mdbook-linkcheck`

### Other prerequisites
Expand Down
11 changes: 10 additions & 1 deletion book.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[book]
authors = ["Nate Wilcox"]
authors = [
"Nate Wilcox",
"Daira Emma Hopwood",
]
language = "en"
multilingual = false
src = "src"
Expand All @@ -13,6 +16,12 @@ title = "Zcash Trailing Finality Layer - v0.1.0"
# the symlink and then does the move).
build-dir = "build"

[preprocessor.katex]
macros = "macros.txt"
renderer = ["html"]
# This is needed in order for \href and \url links to work.
trust = true

[output.html]
default-theme = "light"

Expand Down
1 change: 1 addition & 0 deletions macros.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\yaykatex:{\mathsf{yay}\;\href{https://katex.org}{\KaTeX}}

0 comments on commit 15d2d50

Please sign in to comment.