Quote from: Bruno17 at Jun 20, 2016, 02:10 PMThe solution is: Don't put any snippet-tags into a richtext- or markdown-editor.
Try to create your templates in a way, where you can put snippet-calls outside of the content.
Yeah, I know that, but it is a bit of a faff.
Personally, I have an aversion to so-called rich text editors in CMSs or browsers. They usually produce bad markup (or markup not to my taste) that is difficult to control. I also don't like all the levels of abstraction.
I live most of the time in GNU Emacs (email, IRC, org-mode etc etc), which I have adapted over many years to my ways, which probably indicates my preferences in terms of controlling text and text editors.
This site is not going to be used by me, and I of course recognise that other people do not use computers in the way that I do. In this case they will require some sort of editor interface that they can easily understand.
When I saw the Markdown Editor I was quite pleased. Markdown is a good, simple way of marking up text (which also doesn't encourage people to start doing stupid things), and the addition of a way to enter images and use oembed with a simple point and click system is good for the end user.
So, I suppose I'll just abstract all the code and snippets into chunks or whatever. Easy enough I suppose, but it would have been nice if the Markdown Editor website mentioned this sort of thing in the first place ... they seem to go the other way and claim "Parsing MODX tag in live preview". Ah well.
Many thanks for pinning down what the trouble was, I'm still rather shocked that I failed to notice it myself.
[ed. note: ecadre last edited this post 7 years, 10 months ago.]