feat: follow Markdown file links and heading fragments
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user