refactor: recreate extension exports

This commit is contained in:
Florian Wiech
2020-12-07 21:32:50 +01:00
parent 11de3a287f
commit 4142637921
62 changed files with 186 additions and 93 deletions

View File

@@ -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,

View File

@@ -0,0 +1,5 @@
import { CodeBlock } from './code-block'
export * from './code-block'
export default CodeBlock