09272dffeb
@robonen/editor: migrate to eslint flat config + composite tsconfig; fix convergence test type annotations.
13 lines
271 B
TypeScript
13 lines
271 B
TypeScript
import { defineMark } from '../registry';
|
|
|
|
export const highlight = defineMark({
|
|
type: 'highlight',
|
|
spec: {
|
|
inclusive: true,
|
|
rank: 5,
|
|
toDOM: () => ['mark', 0],
|
|
parseDOM: [{ tag: 'mark' }],
|
|
},
|
|
meta: { title: 'Highlight', icon: 'highlighter' },
|
|
});
|