Add tests and documentation for strikethrough element

This commit is contained in:
Christian Muehlhaeuser
2019-12-28 06:07:17 +01:00
parent 84795ad72f
commit d3bde07b2f
5 changed files with 33 additions and 0 deletions
+26
View File
@@ -510,6 +510,32 @@ Output:
---
### strikethrough
The `strikethrough` element represents strikethrough text.
#### Example
Markdown:
```markdown
~~Scratch this~~.
```
Style:
```json
"strikethrough": {
"crossed_out": true
}
```
Output:
![Strikethrough Example](https://github.com/charmbracelet/glamour/raw/master/styles/examples/strikethrough.png)
---
### hr
The `hr` element represents a horizontal rule.
+1
View File
@@ -0,0 +1 @@
~~Scratch this~~.
Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

+5
View File
@@ -0,0 +1,5 @@
{
"strikethrough": {
"crossed_out": true
}
}
+1
View File
@@ -0,0 +1 @@
Scratch this.