Commit ba682eb8 authored by nanahira's avatar nanahira

fix message buffering

parent 2a8304ab
......@@ -36,6 +36,8 @@ export function getPlainText(elements: Element[]) {
}
} else if (element.type === 'sharp') {
buffer += ` #${element.attrs.name} `;
} else {
buffer += getPlainText(element.children);
}
}
return buffer.trim();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment