crossnote 0.9.40 → 0.9.42

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,3 @@
1
+ export declare const DANGEROUS_URL_PATTERN: RegExp;
2
+ export declare const URL_ATTRIBUTES: string[];
3
+ export declare function isDangerousUrl(value: string): boolean;
@@ -31,6 +31,7 @@ export interface HTMLTemplateOption {
31
31
  embedSVG?: boolean;
32
32
  isForBrowser?: boolean;
33
33
  }
34
+ export declare function pandocVersionSupportsMathMethod(versionOutput: string): boolean;
34
35
  export declare class MarkdownEngine {
35
36
  private readonly filePath;
36
37
  private readonly fileDirectoryPath;
@@ -1,3 +1,4 @@
1
+ import * as path from 'path';
1
2
  import { BlockAttributes } from '../lib/block-attributes';
2
3
  import { Notebook } from '../notebook';
3
4
  import { MarkdownParser } from '../notebook/types';
@@ -30,4 +31,5 @@ export interface TransformMarkdownOptions {
30
31
  forJest?: boolean;
31
32
  timestamp?: number;
32
33
  }
34
+ export declare function absoluteImportPath(target: string, pathImpl?: path.PlatformPath): string | null;
33
35
  export declare function transformMarkdown(inputString: string, { fileDirectoryPath, projectDirectoryPath, filesCache, useRelativeFilePath, forPreview, forMarkdownExport, markdownParser, protocolsWhiteListRegExp, notSourceFile, imageDirectoryPath, headingIdGenerator, notebook, forJest, fileHash, timestamp, }: TransformMarkdownOptions): Promise<TransformMarkdownOutput>;
@@ -1,3 +1,4 @@
1
1
  import type { CheerioAPI } from 'cheerio';
2
2
  import { MarkdownEngineRenderOption } from '../markdown-engine';
3
+ export declare function mapSrcsetUrls(srcset: string, mapUrl: (url: string) => string): string;
3
4
  export default function enhance($: CheerioAPI, options: MarkdownEngineRenderOption, resolveFilePath: (path: string, useRelativeFilePath: boolean, fileDirectoryPath?: string) => string): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function renderCsv(code: string): string;
@@ -16,6 +16,12 @@ export declare function setCrossnoteBuildDirectory(path: string): void;
16
16
  export declare function getCrossnoteBuildDirectory(): string;
17
17
  export declare function useExternalAddFileProtocolFunction(func: ((filePath: string, vscodePreviewPanel?: vscode.WebviewPanel | null) => string) | null): () => void;
18
18
  export declare function addFileProtocol(filePath: string, vscodePreviewPanel?: vscode.WebviewPanel | null): string;
19
+ export declare function splitUrlReference(url: string): {
20
+ path: string;
21
+ suffix: string;
22
+ };
23
+ export declare function appendUrlSuffix(url: string, suffix: string): string;
24
+ export declare function escapeUrlPath(filePath: string): string;
19
25
  export declare function removeFileProtocol(filePath: string): string;
20
26
  export { uploadImage } from './tools/image-uploader';
21
27
  export declare function allowUnsafeEval<T>(fn: () => T): T;
@@ -0,0 +1 @@
1
+ export declare function applyColorSchemeToPictures(root: ParentNode, scheme: 'light' | 'dark'): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};