feat: add markdown view component
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user