disable inline image renderer for now

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-02-12 01:07:22 -08:00
parent 7dcfde7109
commit 0945b21710

View File

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