Add integration tests for custom themes

This commit is contained in:
Maas Lalani
2021-07-05 11:48:34 -04:00
parent 49ef7d7cd4
commit 7c98238705
2 changed files with 110 additions and 0 deletions

7
examples/custom_theme.md Normal file
View File

@@ -0,0 +1,7 @@
---
theme: ./examples/theme.json
---
# Slides
The above title should be orange and be prefixed with `CUSTOM`.

103
examples/theme.json Normal file
View File

@@ -0,0 +1,103 @@
{
"document": {
"block_prefix": "\n",
"block_suffix": "\n",
"color": "252",
"margin": 2
},
"block_quote": {
"indent": 1,
"indent_token": "│ "
},
"paragraph": {},
"list": {
"level_indent": 2
},
"heading": {
"block_suffix": "\n",
"color": "39",
"bold": true
},
"h1": {
"prefix": "CUSTOM ",
"suffix": " ",
"color": "#fa0",
"bold": true
},
"h2": {
"prefix": "▓▓▓ ",
"color": "#1cc"
},
"h3": {
"prefix": "▒▒▒▒ ",
"color": "#29c"
},
"h4": {
"color": "#559",
"prefix": "░░░░░ "
},
"h5": {},
"h6": {},
"text": {},
"strikethrough": {
"crossed_out": true
},
"emph": {
"italic": true
},
"strong": {
"bold": true
},
"hr": {
"color": "240",
"format": "\n--------\n"
},
"item": {
"block_prefix": "• "
},
"enumeration": {
"block_prefix": ". "
},
"task": {
"ticked": "[✓] ",
"unticked": "[ ] "
},
"link": {
"color": "30",
"underline": true
},
"link_text": {
"color": "35",
"bold": true
},
"image": {
"color": "212",
"underline": true
},
"image_text": {
"color": "243",
"format": "Image: {{.text}} →"
},
"code": {
"prefix": " ",
"suffix": " ",
"color": "203",
"background_color": "236"
},
"code_block": {
"theme": "dracula",
"margin": 2
},
"table": {
"center_separator": "┼",
"column_separator": "│",
"row_separator": "─"
},
"definition_list": {},
"definition_term": {},
"definition_description": {
"block_prefix": "\n🠶 "
},
"html_block": {},
"html_span": {}
}