@tiptap/extension-code-block-lowlight
Advanced tools
Comparing version 2.3.2 to 2.4.0
import { CodeBlockOptions } from '@tiptap/extension-code-block'; | ||
export interface CodeBlockLowlightOptions extends CodeBlockOptions { | ||
/** | ||
* The lowlight instance. | ||
*/ | ||
lowlight: any; | ||
/** | ||
* The default language. | ||
* @default null | ||
* @example 'javascript' | ||
*/ | ||
defaultLanguage: string | null | undefined; | ||
} | ||
/** | ||
* This extension allows you to highlight code blocks with lowlight. | ||
* @see https://tiptap.dev/api/nodes/code-block-lowlight | ||
*/ | ||
export declare const CodeBlockLowlight: import("@tiptap/core").Node<CodeBlockLowlightOptions, any>; |
{ | ||
"name": "@tiptap/extension-code-block-lowlight", | ||
"description": "code block extension for tiptap", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,5 +32,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.3.2", | ||
"@tiptap/extension-code-block": "^2.3.2", | ||
"@tiptap/pm": "^2.3.2" | ||
"@tiptap/core": "^2.4.0", | ||
"@tiptap/extension-code-block": "^2.4.0", | ||
"@tiptap/pm": "^2.4.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "peerDependencies": { |
@@ -6,6 +6,19 @@ import CodeBlock, { CodeBlockOptions } from '@tiptap/extension-code-block' | ||
export interface CodeBlockLowlightOptions extends CodeBlockOptions { | ||
/** | ||
* The lowlight instance. | ||
*/ | ||
lowlight: any, | ||
/** | ||
* The default language. | ||
* @default null | ||
* @example 'javascript' | ||
*/ | ||
defaultLanguage: string | null | undefined, | ||
} | ||
/** | ||
* This extension allows you to highlight code blocks with lowlight. | ||
* @see https://tiptap.dev/api/nodes/code-block-lowlight | ||
*/ | ||
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({ | ||
@@ -12,0 +25,0 @@ addOptions() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
698510
7406