]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: Fix example markdown for embedding images
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jul 2019 14:37:56 +0000 (15:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jul 2019 14:37:56 +0000 (15:37 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/wiki/files/detail.html

index 270e1e103ef435d72fce162ae1780772077a536b..523e82b6fcbe2c1950c89cbc86f6a5c20a5e8abb 100644 (file)
                        {% if file.is_image() %}
                                <h6>{{ _("Usage") }}</h6>
 
-                               <pre><code>{{{{ file.filename }}}}</code></pre>
+                               <pre><code>![]({{ file.filename }})</code></pre>
 
                                <p>{{ _("Or with an optional caption") }}</p>
 
-                               <pre><code>{{{{ file.filename }}|{{ _("Caption") }}}}</code></pre>
+                               <pre><code>![]({{ file.filename }} "{{ _("Caption") }}")</code></pre>
                        {% end %}
                </div>
        </div>