I can now syntax highlight my code samples in MarkDown blogposts via gatsby-remark-prismjs!
PrismJS comes with a bunch of themes out of the box. And there are even more out there. At the time of writing, I am using prism-okaidia, but that's subject to change.
Some small code snippets just to show off:
async function testJsFunction (foo) {
console.log('FOO:', foo)
}interface TestTsInterface extends Foo {
bar: (a: number, b: string): Promise<void>
}+ does this work
- idk$ cat paper.txt | grep author | wc