UNPKG

@mkljczk/lexical-remark

Version:

This package contains Markdown helpers and functionality for Lexical using remark-parse.

13 lines (9 loc) 328 B
import type { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode.js'; import { ThematicBreak } from 'mdast'; import { Handler } from './index.js'; export const horizontalrule: Handler<HorizontalRuleNode> = () => { const remarkNode: ThematicBreak = { type: 'thematicBreak', }; return remarkNode; };