honkit icon indicating copy to clipboard operation
honkit copied to clipboard

The language of the block has spaces

Open mouse9527 opened this issue 5 years ago • 4 comments

Summary

  • HonKit version: 3.6.20

Step to reproduce

1.The language of the block has spaces. eg: ```http request image

mouse9527 avatar Aug 27 '21 10:08 mouse9527

What is expected result? and What is actual result?

azu avatar Aug 27 '21 11:08 azu

code : image expected: image actual: image

mouse9527 avatar Aug 27 '21 11:08 mouse9527

You need to use http language by two reasons.

Current markdown parser does not support the lang which has spaces. we need to recreate markdown plugin #96 HonKit use highlight.js. highlight.js does support http lang, but it does not support http-request lang.

```http
POST /task?id=1 HTTP/1.1
Host: example.org
Content-Type: application/json; charset=utf-8
Content-Length: 137

{
  "status": "ok",
  "extended": true,
  "results": [
    {"value": 0, "type": "int64"},
    {"value": 1.0e+3, "type": "decimal"}
  ]
}
```

image

azu avatar Aug 29 '21 06:08 azu

Thanks, i know what i need to do

mouse9527 avatar Aug 30 '21 01:08 mouse9527