Skip to content

Commit 76197ff

Browse files
authored
Fix syntax for image insertion in Markdown
1 parent ff32ad0 commit 76197ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

article-edit.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@
8383
For more information on the Markdown markup language, visit this <a href='https://www.markdownguide.org/basic-syntax/' target="_blank">Markdown Guide</a>.<br/>
8484
<br/>
8585
<i>Note 1</i>: You can insert an image from your media library into the body of the article with an expression like this:
86-
<b>{{ img('image-id.jpg', a, {width: 725, height: 400, title: true, caption: true, style: 'float: right', version: 'small'}) }}</b>.
86+
<b>{{ img('image-id.jpg', a, {'width': '725', 'height': '400', 'title': true, 'caption': true, 'style': 'float: right', 'version': 'small'}) }}</b>.
8787
Remark: You can enter a <i>string</i> in the <i>title/caption</i> attribute if you want to use a text other than the one defined in the image record.
88-
For example: <b>{{ img('image-id.jpg', a, {title: 'My tooltip'}) }}</b>.<br/>
88+
For example: <b>{{ img('image-id.jpg', a, {'title': 'My tooltip'}) }}</b>.<br/>
8989
<br/>
9090
<i>Note 2</i>: You can use the <i>declare</i> function within the Twig code to change some template settings without having to change it for all the other articles.
9191
For example, <b>{{ declare('timeline-label', 'Events', a) }}</b> changes the label of the list of events displayed on the <i>Analysis</i> page, which now displays the text "Events" instead of "Timeline".

0 commit comments

Comments
 (0)