Skip to content

Instantly share code, notes, and snippets.

@quinn
Last active September 26, 2016 14:45
Show Gist options
  • Save quinn/0a1a49b1f9381f479b0af7eed165cfc0 to your computer and use it in GitHub Desktop.
Save quinn/0a1a49b1f9381f479b0af7eed165cfc0 to your computer and use it in GitHub Desktop.
# markdown to html link
\[([^\]]+)]\(([^\)]+)\)
<a href="\2">\1</a>
# ruby old hash to new hash
:([a-zA-Z_]+)(\s+)=> # trailing space
\1:\2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment