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