From e3dc8bbab5670b346397bca17d2faa62e0f703e1 Mon Sep 17 00:00:00 2001 From: southerntofu <52931252+southerntofu@users.noreply.github.com> Date: Wed, 29 Apr 2020 17:40:25 +0000 Subject: [PATCH] Access heading level in anchor-link.html (#1008) * Add lvl variable in anchor-link context * Add docs about lvl in anchor-link.html * Rename lvl => level --- components/rendering/src/markdown.rs | 1 + docs/content/documentation/content/linking.md | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/rendering/src/markdown.rs b/components/rendering/src/markdown.rs index 36584206..ba8edfa1 100644 --- a/components/rendering/src/markdown.rs +++ b/components/rendering/src/markdown.rs @@ -329,6 +329,7 @@ pub fn markdown_to_html(content: &str, context: &RenderContext) -> Result