Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Allow `alt` and `title` attributes for <img> tags in markdown
Rūdolfs Ošiņš committed 3 years ago
commit 37f6f7d15bce79ae695935fdecff82920d368f2e
parent 7f3ca6afdb96c3d3ad6a78b3f6e821a24358501b
1 file changed +1 -1
modified src/Markdown.svelte
@@ -23,7 +23,7 @@
    return xss(marked.parse(content), {
      whiteList: {
        ...getDefaultWhiteList(),
-
        img: ["src"],
+
        img: ["src", "alt", "title"],
        audio: ["src"],
        video: ["src"],
        a: ["href", "name"],