crossnote 0.8.6 → 0.8.8
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/README.md +3 -0
- package/out/cjs/index.cjs +90 -90
- package/out/esm/index.mjs +53 -53
- package/out/types/src/lib/block-attributes/types.d.ts +2 -0
- package/out/types/src/lib/block-info/index.d.ts +2 -2
- package/out/types/src/notebook/types.d.ts +3 -1
- package/out/types/src/render-enhancers/embedded-local-images.d.ts +2 -2
- package/out/types/src/render-enhancers/embedded-svgs.d.ts +2 -2
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- /package/out/types/src/lib/block-info/{normalizeBlockInfo.d.ts → normalize-block-info.d.ts} +0 -0
- /package/out/types/src/lib/block-info/{parseBlockInfo.d.ts → parse-block-info.d.ts} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './normalize-block-info';
|
|
2
|
+
export * from './parse-block-info';
|
|
3
3
|
export * from './types';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { KatexOptions } from 'katex';
|
|
2
3
|
import { MermaidConfig } from 'mermaid';
|
|
3
4
|
import { JsonObject } from 'type-fest';
|
|
@@ -11,7 +12,7 @@ export type FileSystemStats = {
|
|
|
11
12
|
isSymbolicLink: () => boolean;
|
|
12
13
|
};
|
|
13
14
|
export type FileSystemApi = {
|
|
14
|
-
readFile: (path: string, encoding?:
|
|
15
|
+
readFile: (path: string, encoding?: BufferEncoding) => Promise<string>;
|
|
15
16
|
writeFile: (path: string, content: string, encoding?: string) => Promise<void>;
|
|
16
17
|
mkdir: (path: string) => Promise<void>;
|
|
17
18
|
exists: (path: string) => Promise<boolean>;
|
|
@@ -40,6 +41,7 @@ export type RevealJsTheme = 'beige.css' | 'black.css' | 'blood.css' | 'league.cs
|
|
|
40
41
|
export type MermaidTheme = 'default' | 'forest' | 'dark' | 'neutral' | 'null';
|
|
41
42
|
export type FrontMatterRenderingOption = 'none' | 'table' | 'code';
|
|
42
43
|
export interface NotebookConfig {
|
|
44
|
+
markdownFileExtensions: string[];
|
|
43
45
|
globalCss: string;
|
|
44
46
|
mermaidConfig: MermaidConfig;
|
|
45
47
|
mathjaxConfig: JsonObject;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="cheerio" />
|
|
2
|
-
import {
|
|
3
|
-
export default function enhance($: CheerioStatic,
|
|
2
|
+
import { Notebook } from '../notebook';
|
|
3
|
+
export default function enhance($: CheerioStatic, notebook: Notebook, resolveFilePath: (path: string, useRelativeFilePath: boolean) => string): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="cheerio" />
|
|
2
|
-
import {
|
|
3
|
-
export default function enhance($: CheerioStatic,
|
|
2
|
+
import { Notebook } from '../notebook';
|
|
3
|
+
export default function enhance($: CheerioStatic, notebook: Notebook, resolveFilePath: (path: string, useRelativeFilePath: boolean) => string): Promise<void>;
|