|
|
|
@ -39,6 +39,7 @@ class Attribute<T> { |
|
|
|
|
Attribute.height.key: Attribute.height, |
|
|
|
|
Attribute.style.key: Attribute.style, |
|
|
|
|
Attribute.token.key: Attribute.token, |
|
|
|
|
Attribute.script.key: Attribute.script, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
static final BoldAttribute bold = BoldAttribute(); |
|
|
|
@ -85,6 +86,8 @@ class Attribute<T> { |
|
|
|
|
|
|
|
|
|
static final TokenAttribute token = TokenAttribute(''); |
|
|
|
|
|
|
|
|
|
static final ScriptAttribute script = ScriptAttribute(''); |
|
|
|
|
|
|
|
|
|
static final Set<String> inlineKeys = { |
|
|
|
|
Attribute.bold.key, |
|
|
|
|
Attribute.italic.key, |
|
|
|
@ -312,3 +315,8 @@ class StyleAttribute extends Attribute<String?> { |
|
|
|
|
class TokenAttribute extends Attribute<String> { |
|
|
|
|
TokenAttribute(String val) : super('token', AttributeScope.IGNORE, val); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// `script` is supposed to be inline attribute but it is not supported yet |
|
|
|
|
class ScriptAttribute extends Attribute<String> { |
|
|
|
|
ScriptAttribute(String val) : super('script', AttributeScope.IGNORE, val); |
|
|
|
|
} |
|
|
|
|