I struggled with this issue for the last days before figuring out what the issue was. It was reported here: Placeholder Forms - #48 by jericson.
The issue doesn’t seem to happen (anymore?) on the example given in the linked post, so I’ll do my own repro here:
[wrap=placeholder key=TABLE description="table name" default="users"][/wrap]
```
SELECT * FROM =TABLE=;
```
does:
SELECT * FROM =TABLE=;
The variable isn’t recognized because of the codeblock highlight, which is automatically set to SQL.
The output HTML is:
<code class="hljs language-sql" data-highlighted="yes">
<span class="hljs-keyword">SELECT</span>
<span class="hljs-operator">*</span>
<span class="hljs-keyword">FROM</span>
<span class="hljs-operator">=</span>
<span class="hljs-keyword">TABLE</span>
<span class="hljs-operator">=</span>
;
</code>
If I specify txt in the codeblock, then the value is correctly displayed:
SELECT * FROM =TABLE=;
The expected behavior would be to have the value displayed regardless of the code highlight.