From 3a009ce13e3a58a4abe05bfc94c019649a4160a5 Mon Sep 17 00:00:00 2001 From: jonghyo Date: Fri, 8 Aug 2025 16:42:51 +0900 Subject: [PATCH] chore: fix bugs --- src/asciidoc-to-ast.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/asciidoc-to-ast.ts b/src/asciidoc-to-ast.ts index 6f36f54..a3a7e46 100644 --- a/src/asciidoc-to-ast.ts +++ b/src/asciidoc-to-ast.ts @@ -119,7 +119,9 @@ export class Converter { } children = children.concat(this.convertElement(element, next)); } - return children; + + const commentNodes = this.extractLineComments(cursor); + return [...commentNodes, ...children]; } convertDocument(