diff --git a/packages/shared/src/editor-schema/html.test.ts b/packages/shared/src/editor-schema/html.test.ts
index 62e57d6..133357b 100644
--- a/packages/shared/src/editor-schema/html.test.ts
+++ b/packages/shared/src/editor-schema/html.test.ts
@@ -15,10 +15,14 @@ describe('docToHtml (issue #24)', () => {
it('renders inline marks and a table', () => {
const doc = markdownToDoc('**bold** and *italic* and `code`');
- expect(docToHtml(doc)).toBe('
bold and italic and code
');
+ expect(docToHtml(doc)).toBe(
+ 'bold and italic and code
',
+ );
const table = markdownToDoc('| A | B |\n| --- | --- |\n| 1 | 2 |');
- expect(docToHtml(table)).toBe('');
+ expect(docToHtml(table)).toBe(
+ '',
+ );
});
it('allowlists link protocols, neutralizing javascript: hrefs', () => {
diff --git a/packages/shared/src/editor-schema/schema.ts b/packages/shared/src/editor-schema/schema.ts
index ced7674..6973fc4 100644
--- a/packages/shared/src/editor-schema/schema.ts
+++ b/packages/shared/src/editor-schema/schema.ts
@@ -66,7 +66,8 @@ export const editorSchema = new Schema({
content: 'list_item+',
attrs: { order: { default: 1, validate: 'number' } },
parseDOM: [{ tag: 'ol' }],
- toDOM: (node) => (node.attrs.order === 1 ? ['ol', 0] : ['ol', { start: node.attrs.order }, 0]),
+ toDOM: (node) =>
+ node.attrs.order === 1 ? ['ol', 0] : ['ol', { start: node.attrs.order }, 0],
},
list_item: {
@@ -86,7 +87,11 @@ export const editorSchema = new Schema({
content: 'paragraph block*',
attrs: { checked: { default: false, validate: 'boolean' } },
parseDOM: [{ tag: 'li[data-type="task_item"]' }],
- toDOM: (node) => ['li', { 'data-type': 'task_item', 'data-checked': String(node.attrs.checked) }, 0],
+ toDOM: (node) => [
+ 'li',
+ { 'data-type': 'task_item', 'data-checked': String(node.attrs.checked) },
+ 0,
+ ],
},
text: { group: 'inline' },