From d419b81ef7bd3bfc3a6911a13a303278eaa1be98 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 26 May 2023 17:27:35 +0300 Subject: feat(corp/rih): add macro to render Markdown->yew::Html statically This makes it possible to embed long texts from Markdown files instead of dealing with writing the weird HTML-tags inside the yew macros, which will be much easier for content editors to deal with. Change-Id: Idc4e67404fcfe2b8d5083cf556df1c701ba17660 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8648 Reviewed-by: tazjin Tested-by: BuildkiteCI --- corp/rih/static-markdown/Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 corp/rih/static-markdown/Cargo.toml (limited to 'corp/rih/static-markdown/Cargo.toml') diff --git a/corp/rih/static-markdown/Cargo.toml b/corp/rih/static-markdown/Cargo.toml new file mode 100644 index 000000000000..c0e298d44cf2 --- /dev/null +++ b/corp/rih/static-markdown/Cargo.toml @@ -0,0 +1,12 @@ +[package] +version = "1.0.0" +name = "static_markdown" +edition = "2018" + +[lib] +proc-macro = true + +[dependencies] +syn = "1.0" +quote = "1.0" +comrak = "0.18" -- cgit 1.4.1