Bruno BELANYI
60f577f739
Using the `tikz` shortcode, and adding the `tikz: true` metadata to a page's frontmatter, allows me to write TikZ diagram and have them rendered in the browser using JavaScript
42 lines
560 B
Markdown
42 lines
560 B
Markdown
---
|
|
title: "Hello World"
|
|
date: 2020-07-14T18:07:56+02:00
|
|
draft: false
|
|
description: "Test post please ignore"
|
|
tags:
|
|
- test
|
|
categories:
|
|
favorite: false
|
|
tikz: true
|
|
---
|
|
|
|
## Test post please ignore
|
|
|
|
Hello world, this is just to test the capabilities of [Hugo](https://gohugo.io/)
|
|
|
|
<!--more-->
|
|
|
|
### Syntax highlighting
|
|
|
|
#### Rust
|
|
|
|
```rust
|
|
fn main() {
|
|
println!("Hello World!")
|
|
}
|
|
```
|
|
|
|
#### Shell
|
|
|
|
```sh
|
|
echo hello world | cut -d' ' -f 1
|
|
```
|
|
|
|
### TikZJax support
|
|
|
|
{{% tikz %}}
|
|
\begin{tikzpicture}
|
|
\draw (0,0) circle (1in);
|
|
\end{tikzpicture}
|
|
{{% /tikz %}}
|