Choosing and pasting one of ~20 multi-line pastes using Split- and Choice-commands #206
-
Hello, I am in need of creating about twenty static rmd templates, depending on output type and some specificities. These snippets are multiline-pastes, and the easier way would be to just create them all separate and just select by search query. However, my first idea was to use the In total, this mess isn't working, but I haven't figured out why:
This being way too messy to debug, I instead went ahead and tried the following simple test:
...which also just leaves faulty outputs, such as
(the "`n" is there cuz newlines are stripped by markdown at beginning/end of code blocks. A newline and one letter is pasted respectively.) In the end, I would need a filtered choice command that allows me to paste one of X multi-line snippets, using one shorthand to find them and then select. I hope this makes any kind of sense. Prepare the snippets once and let then never touch them again. There are more snippets than just the ones above, but those are the only ones I can share as examples, without having to cut sensitive parts. Sincerely, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
rmdtemp_tableofcontents
(doesn't matter, you wont have to type these shorthands, just use them to search/select)[[snippet=rmd_header]]
[[Snippet=[[choice=!|rmdtemplate1|rmdtemplate2|rmdtemplate3]]]]