Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Parametrized rule for external rendering #14

Open
sagotch opened this issue Mar 27, 2014 · 1 comment
Open

Parametrized rule for external rendering #14

sagotch opened this issue Mar 27, 2014 · 1 comment

Comments

@sagotch
Copy link
Owner

sagotch commented Mar 27, 2014

Using the same rule with different parameters could be very useful. A syntax highlighter for instance, taking the language as parameter would need to create as many rule as there is different languages, but only one would be required with parameterized rules.

Something like:

[foo] cmd = "foo --option $1 $2"

%%%foo bar bu
    This is foo, bar is $1 and bu is $2.
%%%
@bfontaine
Copy link
Contributor

You’ll have to use a whitelist or something like that to avoid things like:

%%%rm -rf /
    toto
%%%%

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants