Your sites Log in Sign up Menu

Figure tags?

It looks like an image tag, ![](), generates <p>...<img ...>...</p>. I assume this is a fixed thing, or is there a way to generate <figure><img ...><figcaption>...</figcaption></figure> ?


2 years ago, 3 replies   Improve this question

Not right now, the output HTML for images from the markdown processor is indeed a fixed thing. but I want to make it possible for you to customize the image template.

One thing I'm unsure about is whether this 'image template' should be stored as part of your site's template, or whether it should exist in your blog's settings. I'm leaning towards making it part of your template.

Please note as a workaround in the meantime: you can always mix in the HTML you'd like directly into the Markdown file yourself. Consider this markdown file for example:

Your *markdown* goes here...

<figure><img ...><figcaption>...</figcaption></figure>

More of your **markdown** here too...
Answered 2 years ago · Improve this answer

I personally like the idea that it's a part of the template.

Answered 2 years ago · Improve this answer

Also, from the docs, I haven't tried this so I don't know if blot already supports adding captions, it says that an image link is ![alt text](url). If you implement the figure tag it would be really nice if it was possible to add a caption also.

Answered 2 years ago · Improve this answer