When I use it the content is changed (see HTML entities) by Front-Matter and changes the selected text like this:
{{< ghsvs/callout info >}}
Please use `<h3>` not `<h2>`!
{{< /ghsvs/callout >}}
which results in wrong output in HTML.
Expected behavior
No change of selected markdown text.
Desktop (please complete the following information):
OS: [WIN10, WSL1, Debian]
VSCode
Front-Matter 7.
**Describe the bug**
- In Hugo I use a shortcode that adds a `DIV `container arround a selected markdown block in content and "markdownifies" this block.
```
{{- $css_class := .Get 0 | default "info" -}}
<div class="bd-callout bd-callout-{{ $css_class }}">
{{ .Inner | markdownify }}
</div>
```
- Example in content file (see markdown for `<CODE>`)
```
{{< ghsvs/callout info >}}
Please use `<h3>` not `<h2>`!
{{< /ghsvs/callout >}}
```
- I created a snippet
```
"Callout": {
"description": "",
"body": [
"{{< ghsvs/callout info >}}",
"[[selection]]",
"{{< /ghsvs/callout >}}"
],
"fields": [
{
"name": "selection",
"title": "selection",
"type": "string",
"single": false,
"default": "FM_SELECTED_TEXT"
}
]
}
```
- When I use it the content is changed (see HTML entities) by Front-Matter and changes the selected text like this:
```
{{< ghsvs/callout info >}}
Please use `<h3>` not `<h2>`!
{{< /ghsvs/callout >}}
```
which results in wrong output in HTML.
**Expected behavior**
No change of selected markdown text.
**Desktop (please complete the following information):**
- OS: [WIN10, WSL1, Debian]
- VSCode
- Front-Matter 7.
<!-- github-sync-id:1178096897 -->
All variables are HTML-escaped by default, if you want to add unescaped HTML content, you need to add an & before your variable name. Example: [[&selection]].
Hi @ReLater, that is the default behavior.
All variables are HTML-escaped by default, if you want to add unescaped HTML content, you need to add an `&` before your variable name. Example: `[[&selection]]`.
<!-- github-comment-id:1076381587 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Describe the bug
DIVcontainer arround a selected markdown block in content and "markdownifies" this block.<CODE>)which results in wrong output in HTML.
Expected behavior
No change of selected markdown text.
Desktop (please complete the following information):
Hi @ReLater, that is the default behavior.
All variables are HTML-escaped by default, if you want to add unescaped HTML content, you need to add an
&before your variable name. Example:[[&selection]].Ok. Thanks a lot. Read in docs but then forgotten ;-) Now I will remember forever...