Describe the issue
Which language seems to have the issue?
Are you using highlight or highlightAuto?
...
Sample Code to Reproduce
Expected behavior
Additional context
The invalid string's second line was wrongly drawn as string.
Here is the code to show this issue:
<!DOCTYPE html>
< html lang ="en ">
< head >
< meta charset ="UTF-8 ">
< title > Highlight.js Python test for quote</ title >
< link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css ">
< script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js "> </ script >
< script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/python.min.js "> </ script >
< script >
hljs . highlightAll ( ) ;
</ script >
</ head >
< body >
< h2 > Highlight.js Python</ h2 >
< pre > < code class ="language-python ">
# 1. valid string
a = 'abc'
print(a)
# 2. invalid string
b = 'abc
def'
print(b)
</ code > </ pre >
</ body >
</ html > π React with π 1JamesParrott