-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6317 from capital-G/scdoc-katex
Add formula support for SCDoc via kaTeX
- Loading branch information
Showing
32 changed files
with
3,040 additions
and
2,715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# KaTeX | ||
|
||
SCDocs uses [KaTeX](https://github.com/KaTeX/KaTeX) to render tex code into formulas. | ||
|
||
In order to reduce the footprint of KaTex, a custom build of version `0.16.0` is used which only includes the `woff2` fontfiles using | ||
|
||
```shell | ||
USE_TTF="false" USE_WOFF="false" USE_WOFF2="true" yarn build | ||
``` | ||
|
||
`woff2` is a sufficient font type, see <https://caniuse.com/woff2>. | ||
|
||
## License | ||
|
||
KaTeX is published under MIT license. | ||
The bundled fonts are licensed under SIL Open Font License, see <https://github.com/KaTeX/KaTeX/issues/339#issuecomment-135518223>. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.