Skip to main content

expand_shortcodes

Function expand_shortcodes 

Source
pub fn expand_shortcodes(input: &str) -> String
Expand description

Expands all shortcodes in a string.

ยงExamples

use ssg::shortcodes::expand_shortcodes;

let out = expand_shortcodes("{{< warning >}}heads up{{< /warning >}}");
assert!(out.contains("admonition"));