@hyperbook/markdown 0.29.3 → 0.29.5

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.
@@ -0,0 +1,12 @@
1
+ import type { Extension as MdastExtension } from "mdast-util-from-markdown";
2
+ import type { PhrasingContent } from "mdast";
3
+ export interface Sub {
4
+ type: "sub";
5
+ children: PhrasingContent[];
6
+ }
7
+ export interface Sup {
8
+ type: "sup";
9
+ children: PhrasingContent[];
10
+ }
11
+ declare const mdastSubSup: MdastExtension;
12
+ export default mdastSubSup;
@@ -0,0 +1,13 @@
1
+ import type { Extension } from "micromark-util-types";
2
+ declare module "micromark-util-types" {
3
+ interface TokenTypeMap {
4
+ sub: "sub";
5
+ sup: "sup";
6
+ subMarker: "subMarker";
7
+ subText: "subText";
8
+ supMarker: "supMarker";
9
+ supText: "supText";
10
+ }
11
+ }
12
+ declare const micromarkSubSup: Extension;
13
+ export default micromarkSubSup;
@@ -0,0 +1,4 @@
1
+ import { Root } from "mdast";
2
+ import { Plugin } from "unified";
3
+ declare const remarkParse: Plugin<[], string, Root>;
4
+ export default remarkParse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbook/markdown",
3
- "version": "0.29.3",
3
+ "version": "0.29.5",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",
@@ -52,7 +52,6 @@
52
52
  "remark-gemoji": "8.0.0",
53
53
  "remark-gfm": "4.0.1",
54
54
  "remark-math": "6.0.0",
55
- "remark-parse": "^11.0.0",
56
55
  "remark-rehype": "^11.1.2",
57
56
  "shiki": "^3.6.0",
58
57
  "sort-keys": "^5.1.0",
@@ -81,6 +80,7 @@
81
80
  "lunr": "^2.3.9",
82
81
  "lunr-languages": "^1.14.0",
83
82
  "mermaid": "11.6.0",
83
+ "micromark-util-types": "^2.0.2",
84
84
  "ncp": "^2.0.0",
85
85
  "node-fetch": "^3.3.2",
86
86
  "p5": "^2.0.1",