Code Block example - EdoFro/Freeplane_MarkdownHelper GitHub Wiki
/ Tutorial Examples / MDH nodes / Code Block example
<<< Table example - Text Block example >>>
code block
It takes a node with a script in its note and shows it as a markdown code block
1. Rules
The 'code block' node looks for its first child that fulfills this rules:
- node's details starts with a dot '.'
- it has a note
and translates its content this way:
- takes the node's text as "title" of the code shown
- uses the first word after the dot in the details as the language of the code block
- uses the text in the node as the code
2. Example code
Code: **'[node's text]'**
```language
[node's note]
```
3. Example
The resulting document can be seen here: MD-ex01_03.md