summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Eisses <jesse@eisses.email>2024-10-12 10:54:04 +0200
committerJesse Eisses <jesse@eisses.email>2024-10-12 10:54:04 +0200
commit8cab128231fd782a5a9509580e764d48493cf470 (patch)
treefa8b534d6d8fe4e8b2d856586a4262a5525b1987 /src
parentc1ca6112f6352c8ec69220dfd19fc76a8b09b5bb (diff)
Support rendering of images with an empty alt
Diffstat (limited to 'src')
-rw-r--r--src/clarktown/renderers/link_and_image.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clarktown/renderers/link_and_image.clj b/src/clarktown/renderers/link_and_image.clj
index 7e06db5..05dccac 100644
--- a/src/clarktown/renderers/link_and_image.clj
+++ b/src/clarktown/renderers/link_and_image.clj
@@ -13,7 +13,7 @@
"Renders all occurring links and images."
[block _ _]
(loop [block block
- matches (-> (re-seq #"\!?\[([a-zA-Z0-9\-\_\.\,\']+( [a-zA-Z0-9\-\_\.\,\']+)*)\]\((.*?)\)" block)
+ matches (-> (re-seq #"\!?\[([a-zA-Z0-9\-\_\.\,\']*( [a-zA-Z0-9\-\_\.\,\']+)*)\]\((.*?)\)" block)
distinct)]
(if (empty? matches)
block