mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
2f817e4293
* feat: update snippet fields https://github.com/Jermolene/TiddlyWiki5/discussions/6670 * chore: upgrade files * docs: update readme * fix: usage of mhchem * fix: add back katex.without-font-face.min.css https://github.com/Jermolene/TiddlyWiki5/pull/6671#issuecomment-1116287404 * style: format json with 4 space * style: format json with 1 space * style: restore old format * feat: update css by using new one and delete font face * update developer info * move implementation notes to plugin * update TW style tiddler * update katexdemo edition * chore: delete unused files * Update developer.tid * Update developer.tid Co-authored-by: pmario <pmariojo@gmail.com>
59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
title: $:/plugins/tiddlywiki/katex/developer
|
|
|
|
!! How to upgrade
|
|
|
|
# Download latest release zip file from [[Github release|https://github.com/KaTeX/KaTeX/releases]]
|
|
# Backup existing files
|
|
#* `plugins/tiddlywiki/katex/files/tiddlywiki.files` file and
|
|
#* `katex.without-font-face.min.css` file
|
|
#* Learn more at: $:/plugins/tiddlywiki/katex/ImplementationNotes
|
|
# Rename extracted folder to "files" and
|
|
#* copy it to `plugins/tiddlywiki/katex/files`
|
|
#* (maybe delete the old folder first, to make a full overwrite)
|
|
#* delete unused files in it, like `*.mjs` files and `*.md` files
|
|
# Create `plugins/tiddlywiki/katex/files/tiddlywiki.files`
|
|
#* (or use the old one) and
|
|
#* register all needed files
|
|
# Register in `files/tiddlywiki.files`
|
|
#* `katex.without-font-face.min.css` ''as''
|
|
#* `$:/plugins/tiddlywiki/katex/katex.min.css`
|
|
#* so fonts are loaded properly in tw environment
|
|
|
|
|
|
!! How to test
|
|
|
|
To create a new "test edition" type the following command in a console window:
|
|
|
|
<<<
|
|
```
|
|
node tiddlywiki test-katex --init katexdemo
|
|
```
|
|
<<<
|
|
|
|
>It will create a new directory //test-katex// and clones the //katexdemo// edition.<br>The output should be:
|
|
|
|
<<<
|
|
`Copied edition 'katexdemo' to test-katex`
|
|
<<<
|
|
|
|
Type:
|
|
|
|
<<<
|
|
```
|
|
node tiddlywiki test-katex --listen
|
|
```
|
|
<<<
|
|
|
|
>It should output
|
|
|
|
<<<
|
|
`syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
|
|
Serving on http://127.0.0.1:8080
|
|
(press ctrl-C to exit)
|
|
`
|
|
<<<
|
|
|
|
Test the new version in the browser at: [[http://127.0.0.1:8080]]
|
|
|
|
Make sure all equations of math and chemistry are rendered properly.
|