Closed heitorPB closed 6 months ago
The figure shortcode does not allow Markdown markup in captions. I'm not sure this is by design, but this PR changes it so we can use Markdown in captions.
figure
For example, this snippet:
{{ figure(src="foo.jpg", position="center", caption="Foo _bar_ **baz** [link](http://google.com)", caption_position="center") }}
is currently rendered this way:
After this patch it becomes:
Quite handy in my opinion.
@pawroman what are your thoughts on this?
The
figure
shortcode does not allow Markdown markup in captions. I'm not sure this is by design, but this PR changes it so we can use Markdown in captions.For example, this snippet:
is currently rendered this way:
After this patch it becomes:
Quite handy in my opinion.