Support styled indents for block elements

This commit is contained in:
Christian Muehlhaeuser
2019-11-30 06:43:13 +01:00
parent f70d879a63
commit d37d023d5d
6 changed files with 69 additions and 25 deletions
+4
View File
@@ -26,6 +26,7 @@ const (
CodeBlock
Softbreak
Hardbreak
Indent
Code
HTMLSpan
Table
@@ -47,6 +48,7 @@ type ElementStyle struct {
Overlined bool `json:"overlined"`
Inverse bool `json:"inverse"`
Blink bool `json:"blink"`
Indent uint `json:"indent"`
Theme string `json:"theme"`
Prefix string `json:"prefix"`
Suffix string `json:"suffix"`
@@ -92,6 +94,8 @@ func keyToType(key string) (StyleType, error) {
return Softbreak, nil
case "hardbreak":
return Hardbreak, nil
case "indent":
return Indent, nil
case "code":
return Code, nil
case "html_span":