Add markdown & style reference examples and generator

This commit is contained in:
Christian Muehlhaeuser
2019-12-07 08:51:17 +01:00
parent 9d63f7125d
commit c9247397ec
38 changed files with 181 additions and 0 deletions
+33
View File
@@ -118,6 +118,9 @@ Style:
}
```
Output:
![Heading Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/heading.png)
## text
The `text` element represents a block of text.
@@ -218,6 +221,9 @@ Style:
}
```
Output:
![List Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/list.png)
## enumeration
The `enumeration` element represents an item in ordered lists.
@@ -257,6 +263,9 @@ Style:
}
```
Output:
![Enumeration Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/enumeration.png)
## link
The `link` element represents a link.
@@ -298,6 +307,9 @@ Style:
}
```
Output:
![Link Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/link.png)
## link_text
The `link_text` element represents the text associated with a link.
@@ -371,6 +383,9 @@ Style:
}
```
Output:
![Image Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/image.png)
## image_text
The `image_text` element represents the text associated with an image.
@@ -435,6 +450,9 @@ Style:
}
```
Output:
![Code Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/code.png)
## code_block
The `code_block` element represents a block of code.
@@ -463,6 +481,9 @@ Style:
}
```
Output:
![Code Block Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/code_block.png)
## table
The `table` element represents a table of data.
@@ -497,6 +518,9 @@ Style:
}
```
Output:
![Table Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/table.png)
## emph
The `emph` element represents an emphasized text.
@@ -535,6 +559,9 @@ Style:
}
```
Output:
![Emph Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/emph.png)
## strong
The `strong` element represents important text.
@@ -573,6 +600,9 @@ Style:
}
```
Output:
![Strong Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/strong.png)
## hr
The `hr` element represents a horizontal rule.
@@ -611,6 +641,9 @@ Style:
}
```
Output:
![hr Example](https://github.com/charmbracelet/gold/raw/master/styles/examples/hr.png)
## block_quote
## del
## softbreak