Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indentify headlines wrongly between ``` #23

Closed
yanping opened this issue Apr 22, 2013 · 5 comments
Closed

indentify headlines wrongly between ``` #23

yanping opened this issue Apr 22, 2013 · 5 comments

Comments

@yanping
Copy link

@yanping yanping commented Apr 22, 2013

when some codes between ``` contains # or ##, SmartMarkdown take the lines as headlines, but they can be comments, for example , in R. As following:

Imgur

@vovkkk
Copy link
Contributor

@vovkkk vovkkk commented Apr 22, 2013

It's purview of Markdown plugin (shipped with ST by default).
There is no such thing as fenced code in Markdown, if you know what I mean.

As workaround you can use another tmLanguage for Markdown instead of default one, e.g. this one.
Mind you, default one should be overwrited if you want it to work right away, otherwise you'll need to set syntax in ST from Markdown to Markdown (yea, it's confuse, I know).

@yanping
Copy link
Author

@yanping yanping commented Apr 28, 2013

@vovkkk Thank you very much

@yanping yanping closed this Apr 28, 2013
@stevepowell99
Copy link

@stevepowell99 stevepowell99 commented Oct 30, 2014

Or you can just put a space before your comments - still works as a comment in R at least, and then doesn't get treated as a heading by smartmarkdown

@vovkkk
Copy link
Contributor

@vovkkk vovkkk commented Oct 30, 2014

Well, sure, whitespace is an option, but how about syntax highlighting?

2014-10-31 02-07-55 untitled - sublime text 2

it is knockdown plugin, fwiw; I think it doesn’t support R, would be relatively easy to add it though.

@demon386
Copy link
Owner

@demon386 demon386 commented Oct 31, 2014

Thanks for these ideas. I will get back to work on those issues next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.