mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 07:25: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 {
|
||||
for (const node of tree) {
|
||||
export function inspect(nodes: MfmNode[], action: (node: MfmNode) => void): void {
|
||||
for (const node of nodes) {
|
||||
action(node);
|
||||
if (node.children != null) {
|
||||
inspect(node.children, action);
|
||||
|
|
Loading…
Reference in a new issue