bytesparadise / libasciidoc

A Golang library for processing Asciidoc files.
Apache License 2.0
198 stars 23 forks source link

Support for inline SVG option #674

Open gdamore opened 4 years ago

gdamore commented 4 years ago

Inlining SVG in HTML output can be useful to facilitate styling (for example changing the color, etc.) via CSS.

This is controlled in asciidoctor via the %inline (or options=inline) option.

This would only make sense for HTML backends, and it will require loading the image contents and emitting it to the output at render time rather than relying on the user-agent to do it.

I'm not sure how widely used this is -- browser support for inline SVG (especially in ebook readers) is somewhat of a mixed bag.

rxt1077 commented 5 months ago

Relevant documentation from asciidoctor can be found here.