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.
- package/out/cjs/index.cjs +127 -126
- package/out/esm/index.mjs +113 -112
- package/out/types/src/markdown-engine/index.d.ts +1 -1
- package/out/types/src/markdown-engine/toc.d.ts +2 -1
- package/out/types/src/markdown-engine/transformer.d.ts +2 -2
- package/out/types/src/utility.d.ts +3 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/out/webview/backlinks.css +1 -1
- package/out/webview/preview.css +1 -1
- package/out/webview/preview.js +120 -120
- package/package.json +5 -1
|
@@ -99,7 +99,7 @@ export declare class MarkdownEngine {
|
|
|
99
99
|
private frontMatterToTable;
|
|
100
100
|
private processFrontMatter;
|
|
101
101
|
private parseSlides;
|
|
102
|
-
pandocRender
|
|
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[],
|
|
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
|
-
|
|
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,
|
|
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;
|