Microdown icon indicating copy to clipboard operation
Microdown copied to clipboard

We need a canonical way to represent internally elements with multiple lines

Open Ducasse opened this issue 11 months ago • 2 comments

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

Ducasse avatar Mar 24 '25 15:03 Ducasse

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 ]

kasperosterbye avatar Jul 10 '25 08:07 kasperosterbye

For the moment I will let this idea on the side because I do not understand the impact.

Ducasse avatar Aug 12 '25 20:08 Ducasse