feat: add markdown view component

This commit is contained in:
2026-11-06 17:04:56 +07:00
parent e8e1cb39e0
commit 310cad32be
9 changed files with 1957 additions and 13 deletions
+4
View File
@@ -7,10 +7,12 @@ description = "Read-only code surfaces for gpui applications, one cargo feature
[dependencies]
gpui = { workspace = true }
gpui-native-core = { workspace = true, optional = true }
gpui-native-icons = { workspace = true }
gpui-native-theme = { workspace = true }
gpui-native-utils = { workspace = true }
tree-sitter = "0.25"
similar = "2"
pulldown-cmark = { version = "0.13", default-features = false, optional = true }
tree-sitter-rust = { version = "0.24", optional = true }
tree-sitter-typescript = { version = "0.23", optional = true }
tree-sitter-javascript = { version = "0.23", optional = true }
@@ -24,6 +26,7 @@ default = ["full"]
full = [
"code_view",
"diff_view",
"markdown_view",
"rust",
"typescript",
"javascript",
@@ -35,6 +38,7 @@ code_view = [
"gpui-native-core/scrollbar",
]
diff_view = ["code_view"]
markdown_view = ["code_view", "dep:pulldown-cmark"]
rust = ["dep:tree-sitter-rust"]
typescript = ["dep:tree-sitter-typescript"]
javascript = ["dep:tree-sitter-javascript"]