jonschlinkert / sublime-markdown-extended

Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
https://github.com/jonschlinkert
MIT License
659 stars 96 forks source link

'Toggle comment' doesn't work correctly in GFM code blocks #71

Open willbeaufoy opened 9 years ago

willbeaufoy commented 9 years ago

This would be more of an extra feature, I was wondering whether it would be possible. Would be up for having a look myself if no one's tried it already.

Basically if you select 'toggle comment' within a GFM code block, the comment syntax will be HTML, not the language the code block is written in. E.g. see below for an example of what happens when you 'toggle comment' on a line in an SQL code block

<!-- select * from clients -->

Desired behaviour would be for what sublime does in an sql file:

-- select * from clients
jonschlinkert commented 9 years ago

sorry for the late reply. yeah this would be nice to have. a pr would be great