CDSoft / panda

Panda is a Pandoc Lua filter that works on internal Pandoc's AST. Panda is heavily inspired by [abp](http:/cdelord.fr/abp) reimplemented as a Pandoc Lua filter.
https://cdelord.fr/panda
GNU General Public License v3.0
43 stars 5 forks source link

Highlight code block #9

Closed Jab2870 closed 9 months ago

Jab2870 commented 2 years ago

It is sometimes useful to highlight a line or section of code inside a code block in order to bring attention to it. Is this something that panda would consider implementing?

For example

```{highlight=2-3}
line1
line2
line3


might result in lines 2 and 3 being hilighted
CDSoft commented 2 years ago

Hello,

Thanks for the suggestion.

I currently have very few time for panda but I may consider porting https://owickstrom.github.io/pandoc-emphasize-code/

Jab2870 commented 2 years ago

That is exactly what I was looking for, thanks very much