refactor: recreate extension exports
This commit is contained in:
@@ -11,7 +11,7 @@ export interface CodeBlockOptions {
|
||||
export const backtickInputRegex = /^```(?<language>[a-z]*)? $/
|
||||
export const tildeInputRegex = /^~~~(?<language>[a-z]*)? $/
|
||||
|
||||
const CodeBlock = Node.create({
|
||||
export const CodeBlock = Node.create({
|
||||
name: 'codeBlock',
|
||||
|
||||
defaultOptions: <CodeBlockOptions>{
|
||||
@@ -103,8 +103,6 @@ const CodeBlock = Node.create({
|
||||
},
|
||||
})
|
||||
|
||||
export default CodeBlock
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
CodeBlock: typeof CodeBlock,
|
||||
|
||||
5
packages/extension-code-block/src/index.ts
Normal file
5
packages/extension-code-block/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { CodeBlock } from './code-block'
|
||||
|
||||
export * from './code-block'
|
||||
|
||||
export default CodeBlock
|
||||
Reference in New Issue
Block a user