@primate/markdown 0.5.0 → 0.7.0

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.
@@ -1,5 +1,6 @@
1
1
  import type Dict from "@rcompat/type/Dict";
2
2
  type Component = {
3
+ md: string;
3
4
  html: string;
4
5
  meta: Dict | null;
5
6
  toc: {
@@ -68,6 +68,7 @@ export default class Default extends Runtime {
68
68
  }));
69
69
  return dedent `
70
70
  export default {
71
+ md: ${JSON.stringify(body)},
71
72
  html: ${JSON.stringify(await marked.parse(body))},
72
73
  toc: JSON.parse(${JSON.stringify(JSON.stringify(toc))}),
73
74
  meta: ${meta ? JSON.stringify(meta) : "null"},
@@ -14,7 +14,7 @@ export default class Runtime extends FrontendModule<Component> {
14
14
  client: boolean;
15
15
  render: typeof render;
16
16
  static schema: import("pema").ObjectType<{
17
- fileExtensions: import("pema").OptionalType<import("pema/array").ArrayType<import("pema/string").StringType>>;
17
+ fileExtensions: import("pema").OptionalType<import("pema").ArrayType<import("pema/string").StringType>>;
18
18
  marked: import("pema").OptionalType<import("pema").PureType<MarkedExtension<string, string>, "PureType">>;
19
19
  pretransform: import("pema").OptionalType<import("pema").PureType<Pretransform, "PureType">>;
20
20
  spa: import("pema").DefaultType<import("pema/boolean").BooleanType, true>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primate/markdown",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Primate Markdown frontend",
5
5
  "homepage": "https://primate.run/docs/frontend/markdown",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",
@@ -19,11 +19,11 @@
19
19
  "@rcompat/assert": "^0.3.1",
20
20
  "@rcompat/string": "^0.10.0",
21
21
  "marked": "^16.2.1",
22
- "@primate/core": "^0.2.0",
23
- "pema": "^0.2.0"
22
+ "@primate/core": "^0.4.0",
23
+ "pema": "^0.4.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "primate": "^0.33.0"
26
+ "primate": "^0.35.0"
27
27
  },
28
28
  "type": "module",
29
29
  "imports": {