After a quick google I don’t think there is a way to do this with markdown. The Enhanced Textarea can be added on to but you need to tell it what to do and there is no indent in Markdown.
Its a list of photographers, so I would use the markdown to make those names a list and use CSS to indent them.
Ok, I can see it now as well, for some reason, images were disabled in my browser.
The current enhanced textarea field already has a list option. However, in your particular case, you probably need a list with an extra class which could be achieved with a Kirbytagwhich you would then have to add as an extra option to the textarea buttons. But first, you need the tag.
Thanks for pointing me in the direction of kirbytags
Could you give me a brief rundown of how they work? From the doc I’m getting a basic understanding of their structure but I’m having difficulties understanding how to actually use them, specifically if I want to use a tag to extend the existing Enhanced Textarea-Plugin.
I think you would have to copy one of the built in ones and tweak it. For instance if you look at the Email button lines 32 - 38 it has a kirby text tag in there that gets used. I would copy this file, call it indent.php and then tweak it to use your kirbytag. You need a corresponding form as well by the looks of it.
Another question is how you would like the button to behave. Do you want it to just insert the tags and the user fills the list in between maybe, even using the list button (the latter option sounds like a strange workflow)? Or do you need a modal where the user fills the list?
The easiest way to achieve what you have in mind without any coding required: Enable Markdown Extra, use a heading with a class and then style the list immediately following that heading.
Hi,
I’m trying to achieve the same thing as the original questioner but sadly all the links given here are long gone to 404s. Could someone point me in the direction how I would achieve this in Kirby 3? Thanks a lot.