sublime-markdown-extended icon indicating copy to clipboard operation
sublime-markdown-extended copied to clipboard

Detect language even if it has CGI syntax options added

Open elboletaire opened this issue 9 years ago • 0 comments

With jekyll 3.0 the recommended syntax highlighter for kramdown is rouge which allows us to generate code blocks using the tilde ~ but in some languages like in php, if you want to detect code without the opening tag, you need to specify the code block adding the option start_inline=1:

~~~php?start_inline=1
echo 'Hello world';
~~~

Adding any option using CGI syntax breaks the Markdown Extended highlighting for languages.

I would like to request to change the match for all the languages* and allow them to end with anything after a question mark.

Thanks in advance.

* Or at least php and erb, which are the ones described in the rouge docs: https://github.com/jneen/rouge#you-can-even-use-it-with-redcarpet

elboletaire avatar Apr 29 '16 16:04 elboletaire