@hyperbook/markdown 0.28.4 → 0.28.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,5 @@
1
+ import { HyperbookContext } from "@hyperbook/types";
2
+ import { Root } from "mdast";
3
+ import { VFile } from "vfile";
4
+ declare const _default: (ctx: HyperbookContext) => () => (tree: Root, file: VFile) => void;
5
+ export default _default;
@@ -3,7 +3,7 @@ import { ContainerDirective, LeafDirective, TextDirective } from "mdast-util-dir
3
3
  import { Node } from "unified/lib";
4
4
  import { VFile } from "vfile";
5
5
  export declare const findFlat: <G extends Node>(node: Node, predicate: (n: Node) => n is G) => G[];
6
- export declare const registerDirective: (file: VFile, directive: string, scripts?: string[], styles?: string[]) => void;
6
+ export declare const registerDirective: (file: VFile, directive: string, scripts?: string[], styles?: string[], additionalDirective?: string[]) => void;
7
7
  export declare const requestJS: (file: VFile, js: string[]) => void;
8
8
  export declare const requestCSS: (file: VFile, css: string[]) => void;
9
9
  export declare const isImage: (node: Node) => node is Image;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbook/markdown",
3
- "version": "0.28.4",
3
+ "version": "0.28.5",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",