diff --git a/typed-html/src/dom.rs b/typed-html/src/dom.rs
index 93cc88e..8be1794 100644
--- a/typed-html/src/dom.rs
+++ b/typed-html/src/dom.rs
@@ -139,7 +139,7 @@ macro_rules! text {
($t:expr) => {
Box::new($crate::dom::TextNode::new($t))
};
- ($format:tt, $($tail:tt),*) => {
+ ($format:tt, $($tail:expr),*) => {
Box::new($crate::dom::TextNode::new(format!($format, $($tail),*)))
};
}