Open Ducasse opened 3 months ago
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)
It forces clients to emit newLine
and if they forget then they may generate broken code.