mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
8bafc61ef5
Adds a "markdown: open preview" action to open a markdown preview. https://github.com/zed-industries/zed/assets/18583882/6fd7f009-53f7-4f98-84ea-7dd3f0dd11bf This PR extends the work done in `crates/rich_text` to render markdown to also support: - Variable heading sizes - Markdown tables - Code blocks - Block quotes ## Release Notes - Added `Markdown: Open preview` action to partially close ([#6789](https://github.com/zed-industries/zed/issues/6789)). ## Known issues that will not be included in this PR - Images. - Nested block quotes. - Footnote Reference. - Headers highlighting. - Inline code highlighting (this will need to be implemented in `rich_text`) - Checkboxes (`- [ ]` and `- [x]`) - Syntax highlighting in code blocks. - Markdown table text alignment. - Inner markdown URL clicks
31 lines
637 B
TOML
31 lines
637 B
TOML
[package]
|
|
name = "rich_text"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lib]
|
|
path = "src/rich_text.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = [
|
|
"gpui/test-support",
|
|
"util/test-support",
|
|
]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
collections = { path = "../collections" }
|
|
futures.workspace = true
|
|
gpui = { path = "../gpui" }
|
|
language = { path = "../language" }
|
|
lazy_static.workspace = true
|
|
pulldown-cmark.workspace = true
|
|
smallvec.workspace = true
|
|
smol.workspace = true
|
|
sum_tree = { path = "../sum_tree" }
|
|
theme = { path = "../theme" }
|
|
ui = { path = "../ui" }
|
|
util = { path = "../util" }
|