[openstreetmap/openstreetmap-website] Detect <img> images in markdown rich text (PR #5041)
Anton Khorev
notifications at github.com
Fri Aug 2 17:29:33 UTC 2024
It's possible to add images to markdown rich text without the `![]()` syntax, by using html `<img ...>`. Such images are not detected by #4882 because they have a different type in the kramdown parse tree. This PR enables detection of `<img ...>`.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5041
-- Commit Summary --
* Detect <img> images in markdown rich text
* Skip images with missing src
-- File Changes --
M lib/rich_text.rb (6)
M test/lib/rich_text_test.rb (35)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5041.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5041.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5041
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5041 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240802/cef8cade/attachment.htm>
More information about the rails-dev
mailing list