|
1 | 1 | # edrys_module-markdown-it |
2 | | -Markdown interpreter module for edrys |
| 2 | + |
| 3 | +With this module you can define tasks with Markdown-it. |
| 4 | +Additionally it adds support for: |
| 5 | + |
| 6 | +* __Katex:__ `$formula$` or `$$formula$$` |
| 7 | +* __PlantUML:__ |
| 8 | + |
| 9 | + ```` markdown |
| 10 | + ```plantuml |
| 11 | + Bob -> Alice : hello |
| 12 | + ``` |
| 13 | + ```` |
| 14 | + |
| 15 | +* __DOT:__ |
| 16 | + |
| 17 | + ```` markdown |
| 18 | + ```dot |
| 19 | + digraph example1 { |
| 20 | + 1 -> 2 -> { 4, 5 }; |
| 21 | + 1 -> 3 -> { 6, 7 }; |
| 22 | + } |
| 23 | + ``` |
| 24 | + ```` |
| 25 | + |
| 26 | +* __ditaa:__ |
| 27 | + |
| 28 | + ```` markdown |
| 29 | + ```ditaa |
| 30 | + +--------+ +-------+ +-------+ |
| 31 | + | +---+ ditaa +--> | | |
| 32 | + | Text | +-------+ |diagram| |
| 33 | + |Document| |!magic!| | | |
| 34 | + | {d}| | | | | |
| 35 | + +---+----+ +-------+ +-------+ |
| 36 | + : ^ |
| 37 | + | Lots of work | |
| 38 | + +-------------------------+ |
| 39 | + ``` |
| 40 | + ```` |
| 41 | + |
| 42 | +Import the following URL to your document: |
| 43 | + |
| 44 | +``` |
| 45 | +https://cross-lab-project.github.io/edrys_module-markdown-it/index.html |
| 46 | +``` |
| 47 | + |
| 48 | +## Configuration |
| 49 | + |
| 50 | +To simplify the usage, we provide the example in Yaml and not in JSON, you have to convert it by your own. |
| 51 | +Additionally you can modify only the general configuration: |
| 52 | + |
| 53 | +``` yaml |
| 54 | +md: |- |
| 55 | + # Main Document |
| 56 | +
|
| 57 | + This document will be shown to all users, |
| 58 | + except if you add additional roles, |
| 59 | + then this will be used as the fallback. |
| 60 | +
|
| 61 | + Additional html content is also possible |
| 62 | +
|
| 63 | + <iframe |
| 64 | + width="560" |
| 65 | + height="315" |
| 66 | + src="https://www.youtube.com/embed/BdKyq56Cijo" |
| 67 | + title="YouTube video player" |
| 68 | + frameborder="0" |
| 69 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 70 | + allowfullscreen |
| 71 | + ></iframe> |
| 72 | +
|
| 73 | + next to formulas: $\frac{12}{x}$ |
| 74 | +
|
| 75 | + and next to diagrams: |
| 76 | +
|
| 77 | + ```dot |
| 78 | + digraph example1 { |
| 79 | + 1 -> 2 -> { 4, 5 }; |
| 80 | + 1 -> 3 -> { 6, 7 }; |
| 81 | + } |
| 82 | +
|
| 83 | +student: |- |
| 84 | + # Student documentation |
| 85 | +
|
| 86 | + This content will only be shown to users with the role student. |
| 87 | + If it does not exist, md is used as fallback. |
| 88 | +
|
| 89 | +teacher: |- |
| 90 | + # Teacher documentation |
| 91 | +
|
| 92 | + This content will only be shown to users with the role teacher. |
| 93 | + If it does not exist, md is used as fallback. |
| 94 | +
|
| 95 | +station: |- |
| 96 | + # Station documentation |
| 97 | +
|
| 98 | + This content will only be shown to users with the role station. |
| 99 | + If it does not exist, md is used as fallback. |
| 100 | +``` |
0 commit comments