diff --git a/styles/README.md b/styles/README.md index c326bba..89c11a2 100644 --- a/styles/README.md +++ b/styles/README.md @@ -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. diff --git a/styles/examples/strikethrough.md b/styles/examples/strikethrough.md new file mode 100644 index 0000000..e5a304c --- /dev/null +++ b/styles/examples/strikethrough.md @@ -0,0 +1 @@ +~~Scratch this~~. diff --git a/styles/examples/strikethrough.png b/styles/examples/strikethrough.png new file mode 100644 index 0000000..fa9823c Binary files /dev/null and b/styles/examples/strikethrough.png differ diff --git a/styles/examples/strikethrough.style b/styles/examples/strikethrough.style new file mode 100644 index 0000000..100f7d0 --- /dev/null +++ b/styles/examples/strikethrough.style @@ -0,0 +1,5 @@ +{ + "strikethrough": { + "crossed_out": true + } +} diff --git a/testdata/strikethrough.test b/testdata/strikethrough.test new file mode 100644 index 0000000..c28caf6 --- /dev/null +++ b/testdata/strikethrough.test @@ -0,0 +1 @@ +Scratch this.