Skip to content

Commit

Permalink
remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
kierangilliam committed Jan 29, 2024
1 parent 29c1e09 commit 8050bbc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/markdown_preview/src/markdown_preview_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ impl Render for MarkdownPreviewView {
.bg(cx.theme().colors().editor_background)
.p_4();

// TODO: render_markdown() doesn't need to be called every time,
// only when the contents change.
// Unable to do this because `Div` doesn't implement `clone`.
for item in render_markdown(&self.contents, cx, &self.languages).into_iter() {
container = container.child(item.mb_2());
}
Expand Down

0 comments on commit 8050bbc

Please sign in to comment.