This gets the caption properly and wrapped in a paragraph-tag, but setting parts in the caption to Italic or Bold with “*” or “**” doesn’t do anything to the text. It is also not wrapped in em- or strong-tags. Is there a way to solve this?
I have the same need, so I copied the default image kirbytag from the /kirby/extensions/tags.php into a new file. Then I’ve tried to add the markdown() function but without success.
Hm, in the file you posted, the lines are still unchanged. Please also make sure that the plugin actually gets loaded. You can verify this by returning something else from the Kirbytag like this: