@glifox/gnosis 0.0.8 → 0.0.10

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,42 @@
1
+ import { Language, LanguageSupport, LanguageDescription } from '@codemirror/language';
2
+ import { MarkdownExtension } from '@lezer/markdown';
3
+ import { Extension } from '@codemirror/state';
4
+ import { HrPlugin } from '../src/plugins/block/hr/plugin';
5
+ import { InlinePlugin } from '../src/plugins/inline/plugin';
6
+ import { ListPlugin } from '../src/plugins/block/list/plugin';
7
+ import { CodePlugin } from '../src/plugins/block/code/plugin';
8
+ import { HeadingPlugin } from '../src/plugins/block/heading/plugin';
9
+ import { QuotePlugin } from './plugins/block/quotes/plugin';
10
+ import { QuoteType } from './plugins/block/quotes/extension';
11
+ import { LinkPlugin } from './plugins/links/link/plugin';
12
+ import { ImagePlugin } from './plugins/links/image/plugin';
13
+ import { HtmlPlugin } from './plugins/block/html/plugin';
14
+ interface MarkdownConfig {
15
+ defaultCodeLanguage?: Language | LanguageSupport;
16
+ codeLanguages?: readonly LanguageDescription[] | ((info: string) => Language | LanguageDescription | null);
17
+ addKeymap?: boolean;
18
+ extensions?: MarkdownExtension[];
19
+ base?: Language;
20
+ completeHTMLTags?: boolean;
21
+ htmlTagLanguage?: LanguageSupport;
22
+ }
23
+ interface GnosisConfig {
24
+ markdown: MarkdownConfig;
25
+ }
26
+ declare const gnosis: (conf?: GnosisConfig) => Extension[];
27
+ export { gnosis, HrPlugin, InlinePlugin, ListPlugin, CodePlugin, HeadingPlugin, LinkPlugin, QuotePlugin, QuoteType, ImagePlugin, HtmlPlugin, };
28
+ declare global {
29
+ interface Window {
30
+ gnosis: typeof gnosis;
31
+ HrPlugin: typeof HrPlugin;
32
+ InlinePlugin: typeof InlinePlugin;
33
+ ListPlugin: typeof ListPlugin;
34
+ CodePlugin: typeof CodePlugin;
35
+ HeadingPlugin: typeof HeadingPlugin;
36
+ LinkPlugin: typeof LinkPlugin;
37
+ QuotePlugin: typeof QuotePlugin;
38
+ QuoteType: typeof QuoteType;
39
+ ImagePlugin: typeof ImagePlugin;
40
+ HtmlPlugin: typeof HtmlPlugin;
41
+ }
42
+ }