pillar-markup / Microdown

Microdown is a cleaned and simpler markdown but with more powerful features such as extensions.
Other
40 stars 31 forks source link

end of line conventions.... #798

Open Ducasse opened 3 months ago

Ducasse commented 3 months ago
MicDocumentWriter >> usedNewLine
    "Return the encoded new line. Useful for tests."
    ^ canvas stream usedNewLine
MicOutputStream >> usedNewLine
    ^ self configuration newLine

So the convention is based on the configuration.

In particular it means that it is unclear how we can use

MicDocumentWriter >> crlfAsNewLine

    canvas crlfAsNewLine
Ducasse commented 2 months ago

OK so this means that crlfAsNewLine is needed in case we want to really use crlf. I will update the comment.