I have just noticed that syntax highlighting breaks down when I have a Python f-string in the a code block. With a file like this:
Python f-string with inline variable seems to break syntax highlighting.
```{python}
a = 1
print(f'{a}')
```
Syntax highlight still believes this is code.
I see the syntax highlighting appears to believe the last line is code. Removing the {a} from the f-string fixes this. So it appears to be an interaction between the Python and Rmarkdown parser.
Thanks very much for this very useful plugin.
I have just noticed that syntax highlighting breaks down when I have a Python f-string in the a code block. With a file like this:
I see the syntax highlighting appears to believe the last line is code. Removing the
{a}
from the f-string fixes this. So it appears to be an interaction between the Python and Rmarkdown parser.