hackmdio / hackmdio/codimd

Shell syntax highlighting looks good in editor but odd in published view

Open
#733 4 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
10.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

It looks like the syntax highlighting, at least for shell commands and scripts, is handled differently in the editor and the published view. The published view does odd things.

My example document is [this one](https://hackmd.io/s/rJ4YjhQvG) and here is a screenshot of how inconsistent the right panel makes it look:

![](https://screenshotscdn.firefoxusercontent.com/images/525251ed-b2a8-4687-ad9f-d64f64dc3498.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.