Microdown
Microdown copied to clipboard
We need a canonical way to represent internally elements with multiple lines
bodyFromLine: line
(self doesLineStartWithStopMarkup: line)
ifTrue: [ isClosed := true ]
ifFalse: [ body := body ifNil: [ line ] ifNotNil: [
body , String cr , line ] ]
hard codes String cr and this would be ok if we can treat such information during tests
The method you mention is in MicRawParagraphBlock >> bodyFromLine: line. In its superclass there is a similar issue: bodyFromLine: line self flag: #todo. "I do not think that this is a good idea to use a string to represent lines. Especially since line contents is not interpreted - no formatting"
body := body ifNil: [ line ] ifNotNil: [ body , String cr , line ]
For the moment I will let this idea on the side because I do not understand the impact.