Docusaurus: Highlighting is not really working

Created on 8 Jul 2018  路  2Comments  路  Source: facebook/docusaurus

馃悰 Bug Report

Every code block with a language class do not render the language right becuase there is a space between them. Here is a image:

bildschirmfoto 2018-07-08 um 22 43 05

Have you read the Contributing Guidelines on issues?

yes

To Reproduce

  1. clean install
  2. add a builder.code(npm install --save-dev, "bash");

Expected behavior

It should render the class like language-bash not language- bash (note the space).

(Write what you thought would happen.)

Actual Behavior

see screenshot above

(Write what happened. Add screenshots, if applicable.)

Reproducible Demo

https://github.com/unibeautify/unibeautify

(Paste the link to an example repo, including a siteConfig.js, and exact instructions to reproduce the issue.)

bug claimed

All 2 comments

@endiliey I think it's caused by https://github.com/facebook/Docusaurus/blob/master/lib/core/renderMarkdown.js#L27 having an extra space.

Great catch. Will send a fix asap 馃榿

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yangshun picture yangshun  路  70Comments

taylorreece picture taylorreece  路  28Comments

t3573393 picture t3573393  路  25Comments

yanzhiwei147 picture yanzhiwei147  路  69Comments

cameronelliott picture cameronelliott  路  28Comments