Windows and Mac OS 9 newline characters do not result in breaks.
When a text file has Mac OS 9 or Windows line endings, then when you try to enable "Retain line breaks in paragraphs" it has no result, so no line breaks are inserted.
Problem is when you copy and paste text from Pages into a simple editor and then try to view it in Marked. Pasting will result in Mac OS 9 line breaks.
- Test.txt 134 Bytes
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on Oct 26, 2012 @ 01:21 PM
Pasting into what, exactly? Most text editors should make the conversion. Marked isn't designed to handle much beyond plain text. I can work on the regex for that, but it's really intended to be used for text created in a plain text editor to begin with…
2 Posted by Berend Klein Ha... on Oct 26, 2012 @ 01:48 PM
Pasting into ByWord does not convert the newline characters. I have not tried with other editors yet though. But wouldn't it also be a problem if someone converts from Windows to Mac and tries to view his text files in Marked? I still think it would be nice for Marked to be indifferent towards newline character encodings.
Support Staff 3 Posted by Brett on Oct 26, 2012 @ 02:05 PM
Like I said, I'll work on the regex. The "preserve newlines" feature is really not part of the Markdown spec at all (or any spec but Github Flavored), but I should be able to make it work.