Closes #32791 https://github.com/user-attachments/assets/8cb90e3d-ef7b-407f-b78b-7ba4ff6d8df2 Release Notes: - Allowed multiple Markdown preview tabs
23 lines
524 B
Rust
23 lines
524 B
Rust
use gpui::{App, actions};
|
|
use workspace::Workspace;
|
|
|
|
pub mod markdown_elements;
|
|
pub mod markdown_parser;
|
|
pub mod markdown_preview_view;
|
|
pub mod markdown_renderer;
|
|
|
|
actions!(
|
|
markdown,
|
|
[OpenPreview, OpenPreviewToTheSide, OpenFollowingPreview]
|
|
);
|
|
|
|
pub fn init(cx: &mut App) {
|
|
cx.observe_new(|workspace: &mut Workspace, window, cx| {
|
|
let Some(window) = window else {
|
|
return;
|
|
};
|
|
markdown_preview_view::MarkdownPreviewView::register(workspace, window, cx);
|
|
})
|
|
.detach();
|
|
}
|