From e4e112f9f561c428fa2d443aecbc82cacbbeae27 Mon Sep 17 00:00:00 2001 From: vjeantet Date: Fri, 25 Sep 2020 09:03:49 +0200 Subject: checklist : c/show shortcode can now embed an optinal hidden input field --- .../content/checklist/webappsec/02_vulnerabilityreporting.md | 2 +- layouts/shortcodes/c/show.html | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md b/exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md index 1c2e997..195bea3 100644 --- a/exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md +++ b/exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md @@ -10,7 +10,7 @@ Because no system is entirely free of security issues, it's important to provide {{}} -{{}} +{{}} {{%notice warning%}} **Warning — possible medium-risk issue**\ \ diff --git a/layouts/shortcodes/c/show.html b/layouts/shortcodes/c/show.html index 8eda479..637f430 100644 --- a/layouts/shortcodes/c/show.html +++ b/layouts/shortcodes/c/show.html @@ -8,5 +8,10 @@ {{ $conditionFix = replace $conditionFix ` or ` ` || ` }} {{ $conditionFix = replaceRE `[^)]+has\s+('\w+')` ".includes($1)" $conditionFix }} - + + -- cgit v1.2.3