Created
October 26, 2017 06:50
-
-
Save Dinir/f1c2721bdb67e74eae1d406387d0f917 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| text = text.replace(/(={65})\s*([^=\n]*)\s*(={65})/g, '# $2'); | |
| text = text.replace(/(-{65})\s*([^\n]*)\s*(-{65})/g, '## $2'); | |
| text = text.replace(/ ([^\n]*)\s*\n-+\n/g, '### $1\n\n'); | |
| text = text.replace(/ ([^\s]+) +(.+)/, 'ftyuftyu'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment