Skip to content
Snippets Groups Projects
Commit 2d2bea6d authored by marihachi's avatar marihachi
Browse files

removes createNode utility

parent 150cbd26
No related branches found
No related tags found
No related merge requests found
import { isMfmBlock, MfmNode, TEXT } from './node';
export function createNode(type: string, props?: Record<string, any>, children?: MfmNode[]): MfmNode {
const node: any = { type };
if (props != null) {
node.props = props;
}
if (children != null) {
node.children = children;
}
return node;
}
export function mergeText(nodes: (MfmNode | string)[]): MfmNode[] {
const dest: MfmNode[] = [];
const storedChars: string[] = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment