StyleParseRule
A parse rule targeting a style property.
interface StyleParseRule extends GenericParseRule {
clearMark?: (mark: Mark) => boolean;
getAttrs?: (node: string) => Attrs | false | null;
style: string;
tag?: undefined;
}§Extends
§Properties
§
style: string
[src]A CSS property name to match. This rule will match inline styles
that list that property. May also have the form
"property=value"
, in which case the rule only matches if the
property's value exactly matches the given value. (For more
complicated filters, use getAttrs
and return false to indicate that the match failed.) Rules
matching styles may only produce marks,
not nodes.