summaryrefslogtreecommitdiff
path: root/crates/material_theme/src/markdown.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/material_theme/src/markdown.rs')
-rw-r--r--crates/material_theme/src/markdown.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/material_theme/src/markdown.rs b/crates/material_theme/src/markdown.rs
new file mode 100644
index 0000000..bc14ffe
--- /dev/null
+++ b/crates/material_theme/src/markdown.rs
@@ -0,0 +1,10 @@
+use iced_widget::markdown::Catalog;
+
+use super::{Theme, container};
+
+impl Catalog for Theme {
+ fn code_block<'a>() -> <Self as iced_widget::container::Catalog>::Class<'a>
+ {
+ Box::new(container::surface_container_highest)
+ }
+}