mirror of
https://github.com/vale981/riot-katex
synced 2025-03-04 08:41:39 -05:00
add fonts and docs
This commit is contained in:
parent
478154405c
commit
c8c4fba83a
3 changed files with 18 additions and 16 deletions
|
@ -9,3 +9,8 @@ This extension injects KaTeX into the `Riot` chat client for
|
|||
- `$$x^2$$` renders math block style
|
||||
- `\(x^2\)` renders math inline
|
||||
|
||||
## Building the Extension
|
||||
- make sure you have npm installed
|
||||
- run `./package.sh`, the webextension will be zipped as
|
||||
`katex-riot.zip` and the file structure of the extionsion is
|
||||
written to the folder `katex-riot-pub` for debugging
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Riot KaTeX",
|
||||
"version": "1.0",
|
||||
"name": "Riot KaTeX for matrix.tu-dresden.de",
|
||||
"version": "1.0.1",
|
||||
|
||||
"description": "Renders formulars on matrix.tu-dresden.de chats using KaTeX.",
|
||||
|
||||
"description": "Renders formulars in Riot chats using KaTeX.",
|
||||
|
||||
"icons": {
|
||||
"48": "icons/border-48.png"
|
||||
},
|
||||
"permissions": [
|
||||
"activeTab"
|
||||
],
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["*://matrix.tu-dresden.de/*"],
|
||||
"js": ["node_modules/katex/dist/katex.js",
|
||||
"node_modules/katex/dist/contrib/auto-render.js",
|
||||
"node_modules/observable-slim/observable-slim.js",
|
||||
"js": ["katex.min.js",
|
||||
"auto-render.min.js",
|
||||
"riot-katex.js"],
|
||||
"css": ["node_modules/katex/dist/katex.css"],
|
||||
"css": ["katex.min.css"],
|
||||
"all_frames": true,
|
||||
"run_at": "document_idle"
|
||||
}
|
||||
],
|
||||
"web_accessible_resources": [
|
||||
"fonts/*.woff2"
|
||||
]
|
||||
}
|
||||
|
|
9
package-lock.json
generated
9
package-lock.json
generated
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
"requires": true,
|
||||
"name": "riot-katex-tu-dd",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"commander": {
|
||||
"version": "2.20.3",
|
||||
|
@ -14,11 +16,6 @@
|
|||
"requires": {
|
||||
"commander": "^2.19.0"
|
||||
}
|
||||
},
|
||||
"observable-slim": {
|
||||
"version": "0.1.5",
|
||||
"resolved": "https://registry.npmjs.org/observable-slim/-/observable-slim-0.1.5.tgz",
|
||||
"integrity": "sha512-xhDK4EjwM6ehZ6KhTtDc0z5kqBhqoBQPP9pq2n1c+RXA4IcyLIm68ipDwS3nZVXhrCssoKu4LcHDUT1tl0kP9A=="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue