gruehle / MarkdownPreview

Brackets extension for previewing markdown files
MIT License
278 stars 61 forks source link

Dropdown for enabling GFM rendering behavior; and make links clickable #33

Closed peterflynn closed 10 years ago

peterflynn commented 10 years ago

The current version uses GFM-style linebreak handling but otherwise renders like regular Markdown. This adds UI to explicitly toggle between full GFM or no GFM at all. I set the dropdown picker to only appear when you hover over the iframe, to reduce clutter... but that could be changed if need be.

This also changes the behavior of links so that openURLInDefaultBrowser() is called to when they're clicked.

peterflynn commented 10 years ago

Btw, this changes the default rendering behavior from (semi-)GFM back to regular Markdown, since that seems more common -- even on GitHub, when you're dealing with a wiki page or README.md file it uses regular Markdown. GFM seems to only come into play inside issues & PRs.

gruehle commented 10 years ago

Thanks @peterflynn!