UNPKG

@mkljczk/lexical-remark

Version:

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

13 lines (9 loc) 253 B
import type { LineBreakNode } from 'lexical'; import { Break } from 'mdast'; import { Handler } from './index.js'; export const linebreak: Handler<LineBreakNode> = () => { const remarkNode: Break = { type: 'break', }; return remarkNode; };