Embedding iframe into documentation

Hi

I am researching the possibility of embedding Figma previews as <iframe ... /> into the documentation generated by DocC.

I can't find any possible way of doing that from within the markdown files or within the code-level documentation.

Is it something that can be done with DocC?

2 Likes

I don't think this is something that is possible today using only markdown files or code source comments since DocC does not permit raw HTML in its markdown input.

I do think there is potential for a future enhancement to allow something like this through the introduction of a new directive possibly. I imagine that supporting YouTube video embedding might require a similar type of functionality and may be a useful feature.

Thanks for your reply, I created a feature request for this.

1 Like