- #[rustfmt::skip] // requires nightly Rust and #![feature(tool_attributes)] in crate root
- #[cfg_attr(rustfmt, rustfmt_skip)] // works in stable
+ #![rustfmt::skip::attributes(custom_attribute)]
+
+ #[custom_attribute(formatting , here , should , be , Skipped)]
+ #[rustfmt::skip::macros(html)]
+ fn main() {
+ let macro_result1 = html! { <div>
+ Hello</div>
+ }.to_string();