KittyGiraudel / SJSJ

Simplified JavaScript Jargon
http://jargon.js.org
2.27k stars 193 forks source link

[RFR] Added .gitattributes with force unix newline conversion for *.md files #132

Closed w0robey closed 8 years ago

w0robey commented 8 years ago

Added force newline conversion *.md files for correct work export-script on Windows system.

Specifically, for this part:

// bin/export   line:14

    // Not worked with Windows line endings
    // In example, '#TITLE\r\n\r\nDESCRIPTION'.match(/^.*\n+([\s\S]+)|^/)[1] is '\r', not 'DESCRIPTION'
    markdown: content.match(/^.*\n+([\s\S]+)|^/)[1]
KittyGiraudel commented 8 years ago

That is a good idea. :)

KittyGiraudel commented 8 years ago

Thank you! :)

w0robey commented 8 years ago

:+1: