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
660 stars 96 forks source link

Feature request: New indented style #182

Closed evanmoran closed 5 years ago

evanmoran commented 6 years ago

Hi there!

I love this project and had an idea for you that's been tickling the back of my brain all week. Curious what you think, and if you'd consider a pull request for this :)

Here's an example that works currently to highlight Javascript:

# Current Style
Let's highlight this code:
```javascript
var a = 5;
```
Hurray, it worked!

What if this also could be written in an indented style:

# New Indented Style
Let's highlight this code:
    ```javascript
    var a = 5;
Hurray, it worked!

This has couple cool benefits:

  1. No triple quotes are needed at the end, because the indention serves as the region ending.

  2. The indention fits the code block quite naturally, and I think this makes the other markdown parts easier to read (paragraphs, headers, etc)

Thanks again for all the hard work!

-Evan

jonschlinkert commented 5 years ago

Since this doesn't follow https://commonmark.org/ standards, I'm going to go ahead and close. But I do appreciate the issue and the time you took to write it.