Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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

§
clearMark?: (mark: Mark) => boolean
[src]

Style rules can remove marks from the set of active marks.

§
getAttrs?: (node: string) => Attrs | false | null
[src]

A function used to compute the attributes for the node or mark created by this rule. Called with the style's value.

§
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.

§
tag?: undefined
[src]

Given to make TS see ParseRule as a tagged union @hide