asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.13k stars 500 forks source link

Add support for SVG to image reference in SVG encoded as a data URI (SVG data loader) #2512

Closed scuba1012002 closed 1 month ago

scuba1012002 commented 3 months ago

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

mojavelinux commented 3 months ago

This is related to prawn-svg upgrade in 2.3.14.