gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.67k stars 854 forks source link

highlightSpans only works with specific languages? #658

Open ratnanil opened 2 years ago

ratnanil commented 2 years ago

I'm trying to use highlightSpans with bash and python, but it only seems to work with ruby (I've yet only tested the three mentioned languages).

see also: http://jsfiddle.net/uwa6drht/4/

my code:

html:

<textarea id="source">

### Testing `highlightSpans` with different code blocks

code block with `ruby`:

```ruby
`foo` bar

code block with bash:

`foo` bar

code block with python:

`foo` bar

code block without specification:

`foo` bar

js: 
```javascript
var slideshow = remark.create({
  highlightSpans: true
});

output: DeepinScreenshot_select-area_20210922103616