ITADN

Bug: line highlighting doesn't work without line numbers

#151OpentheDanielJLewis 创建于 2024-02-13
T
theDanielJLewiscommented
When line numbers are not enabled, line highlighting doesn't work. It still fades out everything else, but it does not highlight the desired lines. This fails: ```js const code = `<html> <body> </body> </html>`; <CodeBlock text={code} language="html" showLineNumbers={false} highlight="2-3" /> ``` But this works: ```js const code = `<html> <body> </body> </html>`; <CodeBlock text={code} language="html" showLineNumbers={true} // The only difference highlight="2-3" /> ```
0 条评论