burodepeper / language-markdown

Add support for Markdown to Atom (including Github flavored, Markdown Extra, CriticMark, YAML/TOML front-matter, and R Markdown), and smart behavior to lists.
https://atom.io/packages/language-markdown
MIT License
118 stars 297 forks source link

snippets for .md and .rmd bug #207

Closed HenrikEckermann closed 6 years ago

HenrikEckermann commented 6 years ago

When I install language-markdown, my snippets stop working. I looked into the settings of language-markdown and tried to adapt my snippets but it does not work.

Here my snippets that work if language-markdown is not installed and language-gfm is enabled. The snippets do not work with language-gfm disabled OR with language-markdown installed (even if language-gfm is also enabled and disabling in the settings of language-markdown is disbaled.

Here is my snippet code:

'.source.pweave.md, .source.gfm, text.md':
  'python_chunk':
    'prefix': 'pp'
    'body': """
    ```{python$2}
    $1
"""

'r_chunk': 'prefix': 'rr' 'body': """

    $1
"""
burodepeper commented 6 years ago

The first line in your snippet code misses a period before text.md ; )

HenrikEckermann commented 6 years ago

Damn... I swear, it did not miss not all the time when I was experimenting what could be the cause. But yes...It works now so this must have been the main issue then and when I had the '.' there it must have not worked for other reasons (maybe did not restart or so). Sorry man...:)

burodepeper commented 6 years ago

Haha, no problem.