Open theDanielJLewis opened 9 months ago
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:
const code = `<html> <body> </body> </html>`; <CodeBlock text={code} language="html" showLineNumbers={false} highlight="2-3" />
But this works:
const code = `<html> <body> </body> </html>`; <CodeBlock text={code} language="html" showLineNumbers={true} // The only difference highlight="2-3" />
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:
But this works: