atom / markdown-preview

📝 Markdown preview in Atom
MIT License
1.23k stars 358 forks source link

Markdown preview renders markdown line as a code block while Github does not do so #554

Open PrajwalKrishna opened 5 years ago

PrajwalKrishna commented 5 years ago

Prerequisites

Description

Markdown preview( even when toggled to Github style) highlights the line when Github does not.

Steps to Reproduce

  1. Create a new .md file
  2. Open up markdown preview with ctrl-shift-m
  3. Make sure the preview is in "GitHub Markdown mode"
  4. Either paste in it
    - Inside GoLang src folder clone this repo
         git clone https://github.com/PK1210/Go-Quiz-Backend-Server
  5. Check the preview.

Expected behavior: The git clone line does not get highlighted. As you can see here -

Actual behavior: The 2nd line gets highlighted. Sample output

Reproduces how often: 100 %

Versions

atom --version

    Atom    : 1.33.1
    Electron: 2.0.16
    Chrome  : 61.0.3163.100
    Node    : 8.9.3

apm --version

apm  2.1.2
npm  6.2.0
node 8.9.3 x64
atom 1.33.1
python 2.7.15rc1
git 2.17.1

OS: Ubuntu 18.04.1 LTS

Additional Information

See README.md at https://github.com/PK1210/Go-Quiz-Backend-Server for a concrete example.

rsese commented 5 years ago

Thanks for the report - this feels like something that's been reported before but I didn't find it. Reproduced on 1.33.1 with macOS 10.12.6.

Rendered on .com at https://github.com/PK1210/Go-Quiz-Backend-Server/blob/f2cc19ea9185e66c18e1155a0aa578cd4e05470c/README.md:

github-com-readme

Atom 1.33.1, looks like at 6 space indent it's treated as a code block, here's 5 and 8 space indent:

- Inside GoLang src folder clone this repo
     git clone https://github.com/PK1210/Go-Quiz-Backend-Server

- Inside GoLang src folder clone this repo
        git clone https://github.com/PK1210/Go-Quiz-Backend-Server

atom