From 63df6c752460b85d0a8b185b456d5e540d106613 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Fri, 24 Nov 2023 10:20:23 +0800 Subject: [PATCH] fix: text component demo --- demo/src/pages/typography/mod.rs | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/demo/src/pages/typography/mod.rs b/demo/src/pages/typography/mod.rs index 5ea26d1..5b6762b 100644 --- a/demo/src/pages/typography/mod.rs +++ b/demo/src/pages/typography/mod.rs @@ -13,24 +13,22 @@ pub fn TypographyPage() -> impl IntoView { "text" "code" - - - "text" - - - "code" - - - "#, - "rust" - ) - > + + + {highlight_str!( + r#" + + + "text" + + + "code" + + + "#, + "rust" + )} - ""

"Text Props"