diff options
author | Qrius <[email protected]> | 2024-09-26 00:11:06 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2024-09-26 00:11:06 +0200 |
commit | 81affd4017870bd3f24a753bd4b937d86bd8da76 (patch) | |
tree | 936363e543f1b33b2fb88a7c24a12ea8526931de /src/macro_processor/macro_processor.rs | |
parent | c71bdceab75374edcb0e4de31c7907b5ef55bb4e (diff) | |
download | skaldpress-81affd4017870bd3f24a753bd4b937d86bd8da76.tar.gz skaldpress-81affd4017870bd3f24a753bd4b937d86bd8da76.zip |
Add macro that checks whether links are working or not
Diffstat (limited to 'src/macro_processor/macro_processor.rs')
-rw-r--r-- | src/macro_processor/macro_processor.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/macro_processor/macro_processor.rs b/src/macro_processor/macro_processor.rs index 612d2c5..a9585bb 100644 --- a/src/macro_processor/macro_processor.rs +++ b/src/macro_processor/macro_processor.rs @@ -3,6 +3,8 @@ use std::collections::HashMap; use std::fs; use std::process::Command; +#[cfg(feature = "deadlinks")] +use crate::macro_processor::deadlinks::smp_builtin_wodl; // print only with debug_assertions macro_rules! dprint { ($($x:tt)*) => { @@ -672,6 +674,8 @@ impl MacroProcessor { String::from("html_from_markdown"), MacroType::Function(smp_builtin_html_from_markdown), ); + #[cfg(feature = "deadlinks")] + self.define_macro(String::from("wodl"), MacroType::Function(smp_builtin_wodl)); #[cfg(feature = "webring")] self.define_macro( String::from("webring_rss"), |