mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 15:35:13 +00:00
update
This commit is contained in:
parent
10e50dd8fa
commit
d1181beaac
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ export function toString(node: MfmNode | MfmNode[]): string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function inspect(tree: MfmNode[], action: (node: MfmNode) => void): void {
|
export function inspect(nodes: MfmNode[], action: (node: MfmNode) => void): void {
|
||||||
for (const node of tree) {
|
for (const node of nodes) {
|
||||||
action(node);
|
action(node);
|
||||||
if (node.children != null) {
|
if (node.children != null) {
|
||||||
inspect(node.children, action);
|
inspect(node.children, action);
|
||||||
|
|
Loading…
Reference in a new issue