crossnote 0.9.0 → 0.9.2

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.
File without changes
@@ -1,3 +1,4 @@
1
+ import HeadingIdGenerator from './markdown-engine/heading-id-generator';
1
2
  import { addFileProtocol, getCrossnoteBuildDirectory, openFile, setCrossnoteBuildDirectory, uploadImage, useExternalAddFileProtocolFunction } from './utility';
2
3
  export declare const utility: {
3
4
  addFileProtocol: typeof addFileProtocol;
@@ -12,3 +13,4 @@ export * from './markdown-engine';
12
13
  export * from './markdown-engine/transformer';
13
14
  export * from './notebook';
14
15
  export { loadConfigsInDirectory, wrapNodeFSAsApi, } from './notebook/config-helper';
16
+ export { HeadingIdGenerator };
@@ -11,6 +11,7 @@ export interface HeadingData {
11
11
  level: number;
12
12
  offset?: number;
13
13
  id?: string;
14
+ lineNo?: number;
14
15
  }
15
16
  export declare function toc(headings: HeadingData[], opt: TocOption): {
16
17
  content: string;
@@ -22,9 +22,10 @@ export interface TransformMarkdownOptions {
22
22
  forMarkdownExport?: boolean;
23
23
  protocolsWhiteListRegExp: RegExp | null;
24
24
  notSourceFile?: boolean;
25
+ fileHash?: string;
25
26
  imageDirectoryPath?: string;
26
27
  headingIdGenerator?: HeadingIdGenerator;
27
28
  notebook: Notebook;
28
29
  forJest?: boolean;
29
30
  }
30
- export declare function transformMarkdown(inputString: string, { fileDirectoryPath, projectDirectoryPath, filesCache, useRelativeFilePath, forPreview, forMarkdownExport, usePandocParser, protocolsWhiteListRegExp, notSourceFile, imageDirectoryPath, headingIdGenerator, notebook, forJest, }: TransformMarkdownOptions): Promise<TransformMarkdownOutput>;
31
+ export declare function transformMarkdown(inputString: string, { fileDirectoryPath, projectDirectoryPath, filesCache, useRelativeFilePath, forPreview, forMarkdownExport, usePandocParser, protocolsWhiteListRegExp, notSourceFile, imageDirectoryPath, headingIdGenerator, notebook, forJest, fileHash, }: TransformMarkdownOptions): Promise<TransformMarkdownOutput>;