Cocoanetics / DTCoreText

Methods to allow using HTML code with CoreText
BSD 2-Clause "Simplified" License
6.34k stars 1.18k forks source link

I have a improvement for support Image display, I think this change can be merged ? #1263

Open ximmyxiao opened 1 year ago

ximmyxiao commented 1 year ago

In DTCoreText ,Each image tag need be specified a width and height value for display width='344px' height='611.01243339254px' If this width and height are not specified, the image will not display.

But in fact , many image will have width and height in url components like this(and without height&width specified as attributes): <img src=\"https://km.woa.com/asset/966393bc0a7642088bf0242c32fae152?height=2532&amp;width=1170\">

So I make a small change to support this url .

Do you think this change is needed to be merged?

odrobnik commented 1 year ago

You are welcome to propose a change request with this. Sounds useful. But only if width and height isn't specified any other way.