Skip to content

Commit d71efa9

Browse files
committed
skip empty lines
1 parent cf130f6 commit d71efa9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/markupParser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function cssUri(cssFile: string) {
4040
}
4141

4242
export function parseMarkup(sourceUri: vscode.Uri, sourceText: string) {
43-
//TODO: use Tokenazer instead of line loop
43+
//TODO: use Tokenizer instead of line loop
4444

4545
var result = '';
4646
let listTag = '';
@@ -54,6 +54,10 @@ export function parseMarkup(sourceUri: vscode.Uri, sourceText: string) {
5454
let tag = entry;
5555
let html_tag = false;
5656

57+
if (tag.length === 0 ) {
58+
continue;
59+
}
60+
5761
if (codeTagFlag == 0) {
5862
tag = tag.replace(/h(\d+)\.\s([^\n]+)/g, "<h$1>$2</h$1>");
5963

0 commit comments

Comments
 (0)