crossnote 0.8.22 → 0.8.24

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.
@@ -99,7 +99,7 @@ export declare class MarkdownEngine {
99
99
  private frontMatterToTable;
100
100
  private processFrontMatter;
101
101
  private parseSlides;
102
- pandocRender(text: string | undefined, args: string[]): Promise<string>;
102
+ private pandocRender;
103
103
  parseMD(inputString: string, options: MarkdownEngineRenderOption): Promise<MarkdownEngineOutput>;
104
104
  runCodeChunks(): Promise<string[]>;
105
105
  runCodeChunk(id: string): Promise<string>;
@@ -1,3 +1,4 @@
1
+ import MarkdownIt from 'markdown-it';
1
2
  export interface TocOption {
2
3
  ordered: boolean;
3
4
  depthFrom: number;
@@ -15,4 +16,4 @@ export declare function toc(headings: HeadingData[], opt: TocOption): {
15
16
  content: string;
16
17
  array: string[];
17
18
  };
18
- export declare function generateSidebarToCHTML(headings: HeadingData[], mdRender: (md: string) => string, opt: TocOption): string;
19
+ export declare function generateSidebarToCHTML(headings: HeadingData[], md: MarkdownIt, opt: TocOption): string;
@@ -18,7 +18,7 @@ export interface TransformMarkdownOptions {
18
18
  };
19
19
  useRelativeFilePath: boolean;
20
20
  forPreview: boolean;
21
- embeddingFilesInMarkdownDirectly?: boolean;
21
+ usePandocParser?: boolean;
22
22
  forMarkdownExport?: boolean;
23
23
  protocolsWhiteListRegExp: RegExp | null;
24
24
  notSourceFile?: boolean;
@@ -27,4 +27,4 @@ export interface TransformMarkdownOptions {
27
27
  notebook: Notebook;
28
28
  forJest?: boolean;
29
29
  }
30
- export declare function transformMarkdown(inputString: string, { fileDirectoryPath, projectDirectoryPath, filesCache, useRelativeFilePath, forPreview, forMarkdownExport, embeddingFilesInMarkdownDirectly, protocolsWhiteListRegExp, notSourceFile, imageDirectoryPath, headingIdGenerator, notebook, forJest, }: TransformMarkdownOptions): Promise<TransformMarkdownOutput>;
30
+ export declare function transformMarkdown(inputString: string, { fileDirectoryPath, projectDirectoryPath, filesCache, useRelativeFilePath, forPreview, forMarkdownExport, usePandocParser, protocolsWhiteListRegExp, notSourceFile, imageDirectoryPath, headingIdGenerator, notebook, forJest, }: TransformMarkdownOptions): Promise<TransformMarkdownOutput>;
@@ -28,3 +28,6 @@ export declare namespace Function {
28
28
  export declare function isVSCodeWebExtension(): boolean;
29
29
  export declare function interpretJS(code: string): any;
30
30
  export declare function findClosingTagIndex(inputString: string, tagName: string, startIndex?: number): number;
31
+ export declare function replaceVariablesInString(inputString: string, replacements?: {
32
+ [key: string]: string;
33
+ }): string;