atom / language-gfm

GitHub Flavored Markdown in Atom
MIT License
101 stars 108 forks source link

Wrongly parsed code blocks as markdown #233

Closed AlynxZhou closed 6 years ago

AlynxZhou commented 6 years ago

Prerequisites

Description

If you have a code block in your markdown file, and the code has chars like *, it will be process as a part of markdown, however, I think code blocks are just code and you shouldn't process * in code as italic, I just want to define a pointer in C...

screenshot from 2018-09-28 13-11-59

Steps to Reproduce

  1. Create a markdown file.
  2. Create a code block with c because we are going to write C code.
  3. Insert some code like int *ptr = NULL; and see code after * becomes italic and breaks highlighting.

Reproduces how often: Every time.

Versions

Atom    : 1.30.0
Electron: 2.0.9
Chrome  : 61.0.3163.100
Node    : 8.9.3
apm  2.1.2
npm  6.4.1
node 10.11.0 x64
atom 1.30.0
python 2.7.15
git 2.19.0
rsese commented 6 years ago

Thanks for contributing!

We noticed that this looks like a duplicate of https://github.com/atom/language-gfm/issues/44 so you can subscribe there for updates if you'd like.


Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.

For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.