mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-23 12:04:22 +00:00
.. | ||
index.js | ||
Readme.md |
A code block which strips excess indentation and applies syntax highlighting.
Appearently explodes if
String.raw
is used. Wat?
import {atomOneLight} from "react-syntax-highlighter/dist/cjs/styles/hljs";
<Code language={"python"} skin={atomOneLight}>
{`
def hello():
print("Hello world!")
`}
</Code>