Skip to content

Instantly share code, notes, and snippets.

@jules2689
Last active March 17, 2017 16:59
Show Gist options
  • Save jules2689/a6c812caac02c5c2956a70ef7e2a29c8 to your computer and use it in GitHub Desktop.
Save jules2689/a6c812caac02c5c2956a70ef7e2a29c8 to your computer and use it in GitHub Desktop.
An example input and output for DiaTeX
Markdown
---
This is a markdown file
```ruby
ruby_var = 'ruby_var'
```
<!---
```latex
2 + 3 * x
```
--->
![latex image](https://jules2689.github.io/gitcdn/images/md/9602d8b2a32a15a18650f562d8406c693582dd5b740dd7ced3986d6ac11de56e.png)
<!---
```latex
2 + 3 * x
```
--->
<!---
```latex
2 + 3 * x + y
```
--->
![latex image](https://jules2689.github.io/gitcdn/images/md/c3195cf2142fde3e01cfd46a6ad7e5cc70ba52ea612807eef273a493b41778e1.png)
<!---
```diagram
sequenceDiagram
participant Jane
participant Bob
Jane->John: Hello John, how are you?
loop Healthcheck
John->John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail...
John-->Jane: Great!
John->Bob: How about you?
Bob-->John: Jolly good!
```
--->
![diagram image](https://jules2689.github.io/gitcdn/images/md/a4913c90935baee4cba42dcad5a5a000fea35604ac99c4b25c96f0957822cb8e.png)

Markdown

This is a markdown file

ruby_var = 'ruby_var'

latex image

latex image

Jane: Great!
John->Bob: How about you?
Bob-->John: Jolly good!
--->

![diagram image](https://jules2689.github.io/gitcdn/images/md/a4913c90935baee4cba42dcad5a5a000fea35604ac99c4b25c96f0957822cb8e.png)
Markdown
---
This is a markdown file
```ruby
ruby_var = 'ruby_var'
```
```latex
2 + 3 * x
```
<!---
```latex
2 + 3 * x
```
--->
```latex
2 + 3 * x + y
```
```diagram
sequenceDiagram
participant Jane
participant Bob
Jane->John: Hello John, how are you?
loop Healthcheck
John->John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail...
John-->Jane: Great!
John->Bob: How about you?
Bob-->John: Jolly good!
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment