I have a Markdown file, e.g.
---
title: Question
date: 2020-07-07
---
This is some code:
```python
def add(a, b):
return a+b
```
and I'd like to leverage the syntax highlighting of Pandoc. This works fine:
pandoc -s --to=html5 2020-07-07-question.md
Because it includes the necessary CSS, e.g.:
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
...
However, I'm actually using Pypandoc to compile the Markdown into HTML, and then I'm including the HTML into a web page. Therefore, I'd like the CSS to be standalone, something I can reference in a file, e.g.
<link rel='stylesheet' href='/path/to/some/highlighting.css'/>
How can I do this?