You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,19 @@ MDViewer
3
3
### Description
4
4
Display Markdown-Text from an external source such as Github-Repos.
5
5
6
+
With version >=1.4.0 of this plugin, external sources can contain blocks that follow a specific syntax which is similar to the one known from `ilTemplate`. An example can be found below.
7
+
```
8
+
<!-- BEGIN block_name_1 -->
9
+
...
10
+
### My Block title
11
+
Lorem ipsdum dolor sit amet ...
12
+
...
13
+
<!-- END block_name_1 -->
14
+
```
15
+
As you can see, the block "tags" are simple HTML-comments which are not visible when rendering the actual MD file.
16
+
17
+
Of course, `block_name_1` can be replaced by the name of your choosing and wrap any content you like. Note that there is no duplicate protection though, so if multiple blocks with the same name are found, the first one will be used.
0 commit comments