feat: follow Markdown file links and heading fragments

This commit is contained in:
2026-10-09 23:00:48 +02:00
parent fcfdc6516d
commit 2264dcb6e9
10 changed files with 1188 additions and 2 deletions
+4
View File
@@ -9,6 +9,10 @@ use tree_sitter::{
mod languages;
use languages::LanguageSpec;
pub(crate) fn is_markdown_path(path: &Path) -> bool {
languages::detect(Some(path), None).is_some_and(|syntax| syntax.name == "Markdown")
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum SyntaxKind {
Comment,