问题
I've found how to add line numbers by writing,
```{.c .numberLines}
int x = 1;
int y = x;
```
But wonder how to add a border to the code blocks.
回答1:
The "easiest" way to do this is to modify the default.beamer
template and pass the --listings
variable to pandoc during pdf creation. Take a look at the information for frames in the listings documentation: http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/listings/listings.pdf
来源:https://stackoverflow.com/questions/23343233/how-to-add-border-to-code-blocks-in-generated-beamer-pdf-from-markdown-using-pan