You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main reason is class-output is not a option for python chunk.
Consider this example,
---
title: "line highlighting"
format: html
filters:
- line-highlight
---
```{python}
#| message: false
#| source-line-numbers: "1,4"
#| class-output: numberLines highlight
#| output-line-numbers: "2"
test = [1, 2, 3, 4]
for i in test:
if i%2 == 0:
print("this line is highlighted")
else:
print("this line is not highlighted")
```
The text was updated successfully, but these errors were encountered:
The main reason is
class-output
is not a option for python chunk.Consider this example,
The text was updated successfully, but these errors were encountered: