@tiptap/extension-code-block-lowlight 2.0.0-beta.2 → 2.0.0-beta.200
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 +2 -2
- package/dist/packages/extension-code-block-lowlight/src/code-block-lowlight.d.ts +6 -1
- package/dist/packages/extension-code-block-lowlight/src/lowlight-plugin.d.ts +4 -2
- package/dist/tiptap-extension-code-block-lowlight.cjs.js +676 -935
- package/dist/tiptap-extension-code-block-lowlight.cjs.js.map +1 -1
- package/dist/tiptap-extension-code-block-lowlight.esm.js +672 -932
- package/dist/tiptap-extension-code-block-lowlight.esm.js.map +1 -1
- package/dist/tiptap-extension-code-block-lowlight.umd.js +680 -939
- package/dist/tiptap-extension-code-block-lowlight.umd.js.map +1 -1
- package/package.json +11 -10
- package/src/code-block-lowlight.ts +22 -3
- package/src/lowlight-plugin.ts +50 -16
- package/CHANGELOG.md +0 -16
- package/LICENSE.md +0 -21
- package/dist/tiptap-extension-code-block-lowlight.bundle.umd.min.js +0 -2
- package/dist/tiptap-extension-code-block-lowlight.bundle.umd.min.js.map +0 -1
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
## Introduction
|
|
8
8
|
tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Official Documentation
|
|
11
11
|
Documentation can be found on the [tiptap website](https://tiptap.dev).
|
|
12
12
|
|
|
13
13
|
## License
|
|
14
|
-
tiptap is open
|
|
14
|
+
tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { CodeBlockOptions } from '@tiptap/extension-code-block';
|
|
2
|
+
export interface CodeBlockLowlightOptions extends CodeBlockOptions {
|
|
3
|
+
lowlight: any;
|
|
4
|
+
defaultLanguage: string | null | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const CodeBlockLowlight: import("@tiptap/core").Node<CodeBlockLowlightOptions, any>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Plugin } from 'prosemirror-state';
|
|
2
|
-
export declare function LowlightPlugin({ name }: {
|
|
2
|
+
export declare function LowlightPlugin({ name, lowlight, defaultLanguage }: {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
4
|
+
lowlight: any;
|
|
5
|
+
defaultLanguage: string | null | undefined;
|
|
6
|
+
}): Plugin<any>;
|