Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
5.96k stars 954 forks source link

JavaScript highlighting (fenced code blocks) #365

Open mitchallen opened 8 months ago

mitchallen commented 8 months ago

JavaScript keywords are not all being highlighted for blocks like this:

 ~~~{.javascript .numberLines caption="keywords.js"}
# Keywords

var a = "Alpha"
const b = "Beta"
let c = "Gamma"
~~~

In this case, only the const keyword is being highlighted. It seems like only generic keywords that could apply to many languages are being highlighted.

I'm building with the docker container using these parameters:

    --template eisvogel --listings

Do I need to pass in specific definitions for JavaScript?