UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

15 lines (13 loc) 234 B
import { rule as ruleFactory } from '../../next-schema/generated/nodeTypes'; /** * @name rule_node */ const hrDOM = ['hr']; export const rule = ruleFactory({ parseDOM: [{ tag: 'hr' }], toDOM() { return hrDOM; } });