Skip to content

Commit 100d9b0

Browse files
committed
[yaml-frontmatter mode] Fix bug breaking the frontmatter being optional
Issue codemirror#3760
1 parent 4a68108 commit 100d9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/yaml-frontmatter/yaml-frontmatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
state.state = FRONTMATTER
4141
return yamlMode.token(stream, state.inner)
4242
} else {
43-
stream.state = BODY
43+
state.state = BODY
4444
state.inner = CodeMirror.startState(innerMode)
4545
return innerMode.token(stream, state.inner)
4646
}

0 commit comments

Comments
 (0)