Skip to content

Commit 5627ef8

Browse files
committed
fix: lheading should set oldParentType when return early
1 parent a8e9c2f commit 5627ef8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rules_block/lheading.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module.exports = function lheading(state, startLine, endLine/*, silent*/) {
5959

6060
if (!level) {
6161
// Didn't find valid underline
62+
state.parentType = oldParentType;
6263
return false;
6364
}
6465

0 commit comments

Comments
 (0)