Placeholder Forms will let you build dynamic documentation, by creating a form that replaces any occurrence of a =PATTERN= in your post with the value from a text or selectable input field.
The big issue with math handling like this, is that you need to eval() and eval is unsafe, so you need to use some lib which provide a safe eval with a limited subset of the real eval. Iām unsure we want all this complexity for such a rare case.
I tried ! and that would be a neat composer-preview-redux-in-OP kind of thing but⦠I must be missing something, if I understand correctly the Reply Template component takes the raw and looks for āreplacersā, but the Placeholder Forms component decorates the cooked?
What Iām trying to do is ease my users into adding some quizz Q&As in a topic, with minimal technical friction, clicks or even key strokes, :heavy-sigh:
Yes Iām not sure what I was thinking when I wrote this⦠I probably had a different use case in mind, but canāt remember.
It canāt work this way for sure. I will think a little bit about this⦠Both theme components were experiments at the time and might deserve better treatment as people have been using it quite frequently.
I donāt know whatās cookinā in the chef kitchen, but as I usually stuff myself with pistachios or whatnot while waiting, I managed to make it work (for my specific use of course as Iāve almost no idea of what Iām doing, but hey⦠)
Ideally I would like to be able to let admin define their own replacers, but eval is risky (and not even possible with a secure csp) so Iām not sure how I could achieve thisā¦
Would be cool if this also included some Jinja2 like conditions. So that e.g. someone could create a key red and map that to the icon , orange would map to . But I can do without of course, but wouldāve been cool to have these test conditions.
āAnd you really live by the =NOUN_1=? What a =ADJECTIVE_1= life!ā
āBy it and with it and on it and in it,ā said =PERSON_1=. āItās brother and sister to me, and aunts, and =NOUN_2=, and food and drink, and (=ADJECTIVE_2=) =VERBING_1=. Itās my =NOUN_3=, and I donāt want any other. What it hasnāt got is not worth =VERBING_2=, and what it doesnāt know is not worth =VERBING_3=. Lord! the =NOUNS_1= weāve had together! Whether in winter or summer, spring or autumn, itās always got its =NOUN_4= and its =NOUNS_2=. When the =NOUNS_3= are on in February, and my =NOUNS_4= and basement are brimming with =NOUN_5= thatās no good to me, and the =COLOR_1= =NOUN_6= runs by my best =NOUN_7= window; or again when it all drops =ADVERB_1= and shows patches of =NOUN_8= that smells like =FOOD_1=, and the =NOUNS_5= and =NOUNS_6= clog the channels, and I can =VERB_1= about =MOISTURE= =NOUN_9= over most of the =NOUN_10= of it and find fresh =FOOD_2= to eat, and things =ADJECTIVE_3= people have dropped out of =NOUNS_7=!ā