Closed MartenBE closed 8 months ago
The !
is not a special regex character? My linter was complaining about it being unnecessarily escaped.
looks like we need some screenshot tests =)
Sorry, there is a mistake in the regex I introduced, but it is not the !
char, it is the following: the regexp currently only copies images with an alt explanatation because I used +
instead of *
in the regexp:
Current regexp: const htmlImageRE = /!\[.+?\]\((.+?)\)/g;
Should be: const htmlImageRE = /!\[.*?\]\((.+?)\)/g;
PR created at https://github.com/webpro/reveal-md/pull/474
No need to apologize! Thanks for the fix.
See https://github.com/webpro/reveal-md/commit/be811016c12ac9be30c579fffe39fb67e6ebf6b2#commitcomment-136249062