sblg icon indicating copy to clipboard operation
sblg copied to clipboard

Prevent variable expansion (e.g. shell code)

Open markand opened this issue 2 years ago • 0 comments

Hey,

I'm enjoying sblg but facing a simple issue regarding code that need to embed some ${VARIABLE}, they are interpreted by sblg itself and I could not find how to escape them so that sblg does not mangle them.

Example of input:

<article data-sblg-article="1">
Check my variable expansion ${PATH%.xml}.
</article>

The generated content will have a placeholder instead:

$ sblg -t template.xml -c test.xml && grep Check test.html 
Check my variable expansion .

Is there a way to escape those strings?

markand avatar Feb 04 '23 08:02 markand