Documents: the field highlighter reads front matter as front matter
CI / site (push) Successful in 30s
CI / platforms (windows-latest) (push) Successful in 4m41s
CI / crate (push) Failing after 13m19s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

Without the front matter construct, an open front matter block parsed
as a rule and a setext heading, so its keys drew bright and bold. The
highlighter now parses as the file does.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-16 14:34:16 -04:00
1 parent 1ff993dcb1
commit 962964e7da
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ pub(crate) fn walk<'a>(node: &'a mdast::Node, out: &mut Vec<&'a mdast::Node>) {
/// The marks over `text`, with the syntax writing each.
pub fn marks(text: &str) -> Vec<(Range<usize>, Mark)> {
let root = tree(text);
let root = file_tree(text);
let mut nodes = Vec::new();
walk(&root, &mut nodes);
let mut out = Vec::new();