Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

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

Open
1 task done
PrajwalKrishna opened this issue Jan 1, 2019 · 1 comment
Open
1 task done
Labels

Comments

@PrajwalKrishna
Copy link

PrajwalKrishna commented Jan 1, 2019

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 -
- Inside GoLang src folder clone this repo
git clone https://github.com/PK1210/Go-Quiz-Backend-Server

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
Copy link

rsese commented Jan 7, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants