stream-chat-react
Version:
React components to create chat conversations or livestream style chat
11 lines (10 loc) • 456 B
TypeScript
import type { Plugin } from 'unified';
import type { Root } from 'mdast';
/**
* Inserts runs of <br> between sibling block nodes to preserve the exact
* number of *blank source lines* between them. No paragraph wrappers are added.
*
* Works because `mdast-util-to-hast` respects `data.hName`, turning our
* `thematicBreak` into `<br>`. Multiple blank lines -> multiple `<br>` siblings.
*/
export declare const keepLineBreaksPlugin: Plugin<[], Root>;