Microdown
Microdown copied to clipboard
Builder codeBlock: logic should encapsulate newLine
It forces clients to emit newLine
canvas newLine.
canvas codeblock: aCodeBlock text firstLineAssociations: parameters associations.
and if they forget then they may generate broken code.
Pay attention to then review all the senders of codeblock:firstLineAssociations:
to remove the preceeeding newLine
testSimpleCodeBlockWithFirstTag
"```language=Pharo
Hello
Pharo
```"
| mictext |
mictext := builder newLine; codeblock: self exampleTextMultipleLines firstLineAssociations: {'language' -> 'Pharo'} ; contents.
self testWithInitialText: mictext.
self assert: ('*language*' match: mictext)