You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file from the asciidoctor-pdf repo
lib/asciidoctor/pdf/ext/prawn-svg/loaders/data.rb it was advised to remove the
regex REGEXP = %r(\Adata:image/(?:png|jpe?g);base64(?:;[a-z0-9]+)*,)i
restriction now that prawn-svg supports SVG image references in SVG
Regex from prawn: REGEXP = %r{\Adata:image/(png|jpeg|svg\+xml);base64(;[a-z0-9]+)*,}i
The text was updated successfully, but these errors were encountered:
scuba1012002
changed the title
Remove asciidoctor SVG image reference
Remove asciidoctor SVG image restriction
Mar 22, 2024
mojavelinux
changed the title
Remove asciidoctor SVG image restriction
Add support for SVG to image referece in SVG encoded as a data URI (SVG data loader)
Mar 22, 2024
mojavelinux
changed the title
Add support for SVG to image referece in SVG encoded as a data URI (SVG data loader)
Add support for SVG to image reference in SVG encoded as a data URI (SVG data loader)
May 31, 2024
mojavelinux
added a commit
to mojavelinux/asciidoctor-pdf
that referenced
this issue
May 31, 2024
In the file from the asciidoctor-pdf repo
lib/asciidoctor/pdf/ext/prawn-svg/loaders/data.rb it was advised to remove the
regex
REGEXP = %r(\Adata:image/(?:png|jpe?g);base64(?:;[a-z0-9]+)*,)i
restriction now that prawn-svg supports SVG image references in SVG
Regex from prawn:
REGEXP = %r{\Adata:image/(png|jpeg|svg\+xml);base64(;[a-z0-9]+)*,}i
The text was updated successfully, but these errors were encountered: