Open ratnanil opened 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).
bash
python
ruby
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:
code block without specification:
js: ```javascript var slideshow = remark.create({ highlightSpans: true });
output:
I'm trying to use highlightSpans with
bash
andpython
, but it only seems to work withruby
(I've yet only tested the three mentioned languages).see also: http://jsfiddle.net/uwa6drht/4/
my code:
html:
code block with
bash
:code block with
python
:code block without specification:
output:![DeepinScreenshot_select-area_20210922103616](https://user-images.githubusercontent.com/12532091/134310732-5e95e5ed-f3bb-44b1-b3df-b0621d954d4a.png)