13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
/**
|
|
* Turn normal line endings into hard breaks.
|
|
*
|
|
* @param {Nodes} tree
|
|
* Tree to change.
|
|
* @returns {undefined}
|
|
* Nothing.
|
|
*/
|
|
export function newlineToBreak(tree: Nodes): undefined
|
|
export type Nodes = import('mdast').Nodes
|
|
export type ReplaceFunction =
|
|
import('mdast-util-find-and-replace').ReplaceFunction
|