Skip to content

Commit

Permalink
disable inline image renderer for now
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Feb 12, 2024
1 parent 7dcfde7 commit 0945b21
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,15 +658,17 @@ fn render_note_contents(
}

BlockType::Url => {
/*
let url = block.as_str().to_lowercase();
if url.ends_with("png") || url.ends_with("jpg") {
images.push(url);
} else {
ui.add(Hyperlink::from_label_and_url(
RichText::new(block.as_str()).color(PURPLE),
block.as_str(),
));
}
*/
ui.add(Hyperlink::from_label_and_url(
RichText::new(block.as_str()).color(PURPLE),
block.as_str(),
));
//}
}

BlockType::Text => {
Expand Down

0 comments on commit 0945b21

Please sign in to comment.