Windows and Mac OS 9 newline characters do not result in breaks.

's Avatar

berendkleinhaneveld

Oct 26, 2012 @ 11:23 AM

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.

  1. Support Staff 1 Posted by Brett on Oct 26, 2012 @ 01:21 PM

    Brett's Avatar

    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. 2 Posted by Berend Klein Ha... on Oct 26, 2012 @ 01:48 PM

    Berend Klein Haneveld's Avatar

    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.

  3. Support Staff 3 Posted by Brett on Oct 26, 2012 @ 02:05 PM

    Brett's Avatar

    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.

Reply to this discussion

Internal reply

        Formatting help / Preview (switch to plain text)

        Already uploaded files

        • Test.txt 134 Bytes

          You can attach files up to 10MB

            If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

              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