crossnote 0.8.0 → 0.8.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.
@@ -21,13 +21,21 @@ export type FileSystemApi = {
21
21
  unlink: (path: string) => Promise<void>;
22
22
  };
23
23
  export type MathRenderingOption = 'None' | 'KaTeX' | 'MathJax';
24
+ export interface ProcessWikiLinkArgs {
25
+ text: string;
26
+ link?: string;
27
+ }
24
28
  export interface ParserConfig {
25
- onWillParseMarkdown?: (markdown: string) => Promise<string>;
26
- onDidParseMarkdown?: (html: string, opts: {
29
+ onWillParseMarkdown: (markdown: string) => Promise<string>;
30
+ onDidParseMarkdown: (html: string, opts: {
27
31
  cheerio: CheerioAPI;
28
32
  }) => Promise<string>;
29
- onWillTransformMarkdown?: (markdown: string) => Promise<string>;
30
- onDidTransformMarkdown?: (markdown: string) => Promise<string>;
33
+ onWillTransformMarkdown: (markdown: string) => Promise<string>;
34
+ onDidTransformMarkdown: (markdown: string) => Promise<string>;
35
+ processWikiLink: (args: ProcessWikiLinkArgs) => {
36
+ text: string;
37
+ link: string;
38
+ };
31
39
  }
32
40
  export type PreviewTheme = 'atom-dark.css' | 'atom-light.css' | 'atom-material.css' | 'github-dark.css' | 'github-light.css' | 'gothic.css' | 'medium.css' | 'monokai.css' | 'newsprint.css' | 'night.css' | 'none.css' | 'one-dark.css' | 'one-light.css' | 'solarized-dark.css' | 'solarized-light.css' | 'vue.css';
33
41
  export type CodeBlockTheme = 'auto.css' | 'default.css' | 'atom-dark.css' | 'atom-light.css' | 'atom-material.css' | 'coy.css' | 'darcula.css' | 'dark.css' | 'funky.css' | 'github.css' | 'hopscotch.css' | 'monokai.css' | 'okaidia.css' | 'one-dark.css' | 'one-light.css' | 'pen-paper-coffee.css' | 'pojoaque.css' | 'solarized-dark.css' | 'solarized-light.css' | 'twilight.css' | 'vue.css' | 'vs.css' | 'xonokai.css';
@@ -46,7 +54,6 @@ export interface NotebookConfig {
46
54
  enableWikiLinkSyntax: boolean;
47
55
  enableLinkify: boolean;
48
56
  useGitHubStylePipedLink: boolean;
49
- wikiLinkFileExtension: string;
50
57
  enableEmojiSyntax: boolean;
51
58
  enableExtendedTableSyntax: boolean;
52
59
  enableCriticMarkupSyntax: boolean;
@@ -25,3 +25,4 @@ export declare function Function(...args: string[]): any;
25
25
  export declare namespace Function {
26
26
  var prototype: Function;
27
27
  }
28
+ export declare function isVSCodeWebExtension(): boolean;