diff --git a/README.md b/README.md index d59fe2f..ac32c85 100644 --- a/README.md +++ b/README.md @@ -23,15 +23,15 @@ This components comes with english, french and german localizations for the noti ``` 3. In your site, use the shortcode, this way: ```go - {{% notice warning %}} + {{< notice warning >}} This is a warning notice. Be warned! - {{% /notice %}} + {{< /notice >}} ``` or ```go - {{% notice tip %}} + {{< notice tip >}} This is a very good tip. - {{% /notice %}} + {{< /notice >}} ``` ### Credits diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html index be729aa..4b06a61 100644 --- a/layouts/shortcodes/notice.html +++ b/layouts/shortcodes/notice.html @@ -7,5 +7,5 @@ {{- $.Page.Scratch.Add "noticecount" 1 -}}

{{- i18n $noticeType -}}

-{{- .Inner -}} +{{- .Inner | markdownify -}}