55
66import { Markdown } from './../../extensions/index.js'
77import { createMarkdownSerializer } from './../../extensions/Markdown.js'
8- import CodeBlock from '@tiptap/extension-code-block'
9- import Blockquote from '@tiptap/extension-blockquote'
8+ import { CodeBlock } from '@tiptap/extension-code-block'
9+ import { Blockquote } from '@tiptap/extension-blockquote'
1010import Image from './../../nodes/Image.js'
1111import ImageInline from './../../nodes/ImageInline.js'
1212import TaskList from './../../nodes/TaskList.js'
1313import TaskItem from './../../nodes/TaskItem.js'
14- import { Italic , Strong , Underline , Link } from './../../marks/index.js'
14+ import { Italic , Strong , Underline , Link } from './../../marks/index.js'
1515import TiptapImage from '@tiptap/extension-image'
1616import { getExtensionField } from '@tiptap/core'
1717import { __serializeForClipboard as serializeForClipboard } from '@tiptap/pm/view'
@@ -114,7 +114,7 @@ describe('Markdown extension integrated in the editor', () => {
114114
115115 it ( 'copies address from blockquote to markdown' , ( ) => {
116116 const editor = createCustomEditor ( {
117- content : '<blockquote><p>Hermannsreute 44A</p></blockquote>' ,
117+ content : '<blockquote><p>Hermannsreute 44A</p></blockquote>' ,
118118 extensions : [ Markdown , Blockquote ] ,
119119 } )
120120 const text = copyEditorContent ( editor )
@@ -123,7 +123,7 @@ describe('Markdown extension integrated in the editor', () => {
123123
124124 it ( 'copy version number without escape character' , ( ) => {
125125 const editor = createCustomEditor ( {
126- content : '<p>Hello</p><p>28.0.4</p>' ,
126+ content : '<p>Hello</p><p>28.0.4</p>' ,
127127 extensions : [ Markdown ] ,
128128 } )
129129 const text = copyEditorContent ( editor )
@@ -132,7 +132,7 @@ describe('Markdown extension integrated in the editor', () => {
132132
133133 it ( 'strips bold, italic, and other marks from paragraph' , ( ) => {
134134 const editor = createCustomEditor ( {
135- content : '<p><strong>Hello</strong></p><p><span style="text-decoration: underline;">lonely </span><em>world</em></p>' ,
135+ content : '<p><strong>Hello</strong></p><p><span style="text-decoration: underline;">lonely </span><em>world</em></p>' ,
136136 extensions : [ Markdown , Italic , Strong , Underline ] ,
137137 } )
138138 const text = copyEditorContent ( editor )
@@ -141,7 +141,7 @@ describe('Markdown extension integrated in the editor', () => {
141141
142142 it ( 'strips href and link formatting from email address' , ( ) => {
143143 const editor = createCustomEditor ( {
144- content : '<p>Hello</p><p><a href="mailto:example@example.com">example@example.com</a></p>' ,
144+ content : '<p>Hello</p><p><a href="mailto:example@example.com">example@example.com</a></p>' ,
145145 extensions : [ Markdown , Link ] ,
146146 } )
147147 const text = copyEditorContent ( editor )
@@ -150,7 +150,7 @@ describe('Markdown extension integrated in the editor', () => {
150150
151151} )
152152
153- function copyEditorContent ( editor ) {
153+ const copyEditorContent = ( editor ) => {
154154 editor . commands . selectAll ( )
155155 const slice = editor . state . selection . content ( )
156156 const { text } = serializeForClipboard ( editor . view , slice )
0 commit comments