aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Raspopov <raspopov@cherubicsoft.com>2021-02-19 10:55:53 +0000
committerGitHub <noreply@github.com>2021-02-19 11:55:53 +0100
commit27c17911443b8d93c56b26664d62f8e5ec274288 (patch)
tree206704552fcbc07dad219eafd8633d182da80036
parentcb57401039cde7e705c6e10c4eef774e4c07427f (diff)
Let's enable markdown in the button title (#308)
Added " | markdownify" to the inner text of button.
-rw-r--r--layouts/shortcodes/button.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html
index 98d2cdd..337a50f 100644
--- a/layouts/shortcodes/button.html
+++ b/layouts/shortcodes/button.html
@@ -8,5 +8,5 @@
{{ $ref = relref $ . }}
{{ end }}
<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" {{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
- {{ $.Inner }}
+ {{ $.Inner | markdownify }}
</a>