Back to API Reference
Class
TagRule
Inherits:TagParseRule
Universal tag parse rule configured via a serialized tag name. Replaces all individual tag parse rule classes (BoldParseRule, ColorParseRule, etc.).
Remarks
Parameters are always optional. Self-closing is syntax-driven via />. <tag>text</tag> — range with no parameter <tag=value>text</tag> — range with parameter <tag/> — self-closing, no parameter <tag=value/> — self-closing with parameter When
defaultParameter is set, tags without parameters use it as a fallback. Tags with partial parameters merge with the default (tag values take priority).Derived Types(1)
Types that inherit from TagRule.
Configured tag name (without angle brackets). Consumers walking the active style set use this to pair the rule with its modifier — clipboard adapters emit / accept tags by this name, custom editors and inspectors render it, markup-to-HTML round-trip code reads it to derive the external element.
