crossnote 0.8.6 → 0.8.7

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.
@@ -1,3 +1,5 @@
1
1
  export interface BlockAttributes {
2
2
  [key: string]: any;
3
+ id?: string;
4
+ class?: string;
3
5
  }
@@ -1,3 +1,3 @@
1
- export * from './normalizeBlockInfo';
2
- export * from './parseBlockInfo';
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?: string) => Promise<string>;
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>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="cheerio" />
2
- import { NotebookConfig } from '../notebook';
3
- export default function enhance($: CheerioStatic, options: NotebookConfig, resolveFilePath: (path: string, useRelativeFilePath: boolean) => string): Promise<void>;
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 { NotebookConfig } from '../notebook';
3
- export default function enhance($: CheerioStatic, options: NotebookConfig, resolveFilePath: (path: string, useRelativeFilePath: boolean) => string): Promise<void>;
2
+ import { Notebook } from '../notebook';
3
+ export default function enhance($: CheerioStatic, notebook: Notebook, resolveFilePath: (path: string, useRelativeFilePath: boolean) => string): Promise<void>;