marked-katex-extension 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/lib/index.umd.js +8 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -14,6 +14,12 @@ c = \\pm\\sqrt{a^2 + b^2}
|
|
|
14
14
|
$$
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
You will still need to include the css in your html document to allow katex styles.
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/katex.min.css" integrity="sha384-bYdxxUwYipFNohQlHt0bjN/LCpueqWz13HufFEV1SUatKs1cm4L6fFgCi1jT643X" crossorigin="anonymous">
|
|
21
|
+
```
|
|
22
|
+
|
|
17
23
|
# Usage
|
|
18
24
|
|
|
19
25
|
```js
|
package/lib/index.umd.js
CHANGED
|
@@ -10305,6 +10305,13 @@
|
|
|
10305
10305
|
parser.consumeSpaces();
|
|
10306
10306
|
var nxt = parser.fetch().text;
|
|
10307
10307
|
|
|
10308
|
+
if (nxt === "\\relax") {
|
|
10309
|
+
// \relax is an artifact of the \cr macro below
|
|
10310
|
+
parser.consume();
|
|
10311
|
+
parser.consumeSpaces();
|
|
10312
|
+
nxt = parser.fetch().text;
|
|
10313
|
+
}
|
|
10314
|
+
|
|
10308
10315
|
while (nxt === "\\hline" || nxt === "\\hdashline") {
|
|
10309
10316
|
parser.consume();
|
|
10310
10317
|
hlineInfo.push(nxt === "\\hdashline");
|
|
@@ -18296,7 +18303,7 @@
|
|
|
18296
18303
|
/**
|
|
18297
18304
|
* Current KaTeX version
|
|
18298
18305
|
*/
|
|
18299
|
-
version: "0.16.
|
|
18306
|
+
version: "0.16.3",
|
|
18300
18307
|
|
|
18301
18308
|
/**
|
|
18302
18309
|
* Renders the given LaTeX into an HTML+MathML combination, and adds
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marked-katex-extension",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "MarkedJS extesion to render katex",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"browser": "./lib/index.umd.js",
|
|
@@ -27,30 +27,30 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/UziTech/marked-katex-extension#readme",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"marked": "^4.1.
|
|
30
|
+
"marked": "^4.1.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@babel/core": "^7.19.
|
|
34
|
-
"@babel/preset-env": "^7.19.
|
|
35
|
-
"@rollup/plugin-node-resolve": "^
|
|
33
|
+
"@babel/core": "^7.19.6",
|
|
34
|
+
"@babel/preset-env": "^7.19.4",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
36
36
|
"@semantic-release/changelog": "^6.0.1",
|
|
37
37
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
38
38
|
"@semantic-release/git": "^10.0.1",
|
|
39
39
|
"@semantic-release/github": "^8.0.6",
|
|
40
40
|
"@semantic-release/npm": "^9.0.1",
|
|
41
41
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
42
|
-
"babel-jest": "^29.
|
|
43
|
-
"eslint": "^8.
|
|
42
|
+
"babel-jest": "^29.2.2",
|
|
43
|
+
"eslint": "^8.26.0",
|
|
44
44
|
"eslint-config-standard": "^17.0.0",
|
|
45
45
|
"eslint-plugin-import": "^2.26.0",
|
|
46
|
-
"eslint-plugin-n": "^15.
|
|
47
|
-
"eslint-plugin-promise": "^6.0
|
|
48
|
-
"jest-cli": "^29.
|
|
49
|
-
"marked": "^4.1.
|
|
50
|
-
"rollup": "^2.
|
|
46
|
+
"eslint-plugin-n": "^15.3.0",
|
|
47
|
+
"eslint-plugin-promise": "^6.1.0",
|
|
48
|
+
"jest-cli": "^29.2.2",
|
|
49
|
+
"marked": "^4.1.1",
|
|
50
|
+
"rollup": "^3.2.3",
|
|
51
51
|
"semantic-release": "^19.0.5"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"katex": "^0.16.
|
|
54
|
+
"katex": "^0.16.3"
|
|
55
55
|
}
|
|
56
56
|
}
|