Parses the Wikidot inline color syntax: ##color|text##.
This syntax applies a CSS color to inline text. The color specifier
and the text content are separated by a pipe (|). Both parts are
required; an empty color or empty content causes the parse to fail.
Supported color formats:
3-digit hex (e.g. c00) -- automatically prefixed with #
6-digit hex (e.g. cc0000) -- automatically prefixed with #
Named CSS colors (e.g. blue, red)
CSS color functions (e.g. rgb(255,0,0))
Wikidot syntax examples:
##c00|Apple## -- red text reading "Apple"
##blue|Ocean## -- blue text reading "Ocean"
##rgb(0,128,0)|Green text## -- CSS function color
Produces a "color" AST element with the resolved color value and
nested inline elements.
Parses the Wikidot inline color syntax:
##color|text##.This syntax applies a CSS color to inline text. The color specifier and the text content are separated by a pipe (
|). Both parts are required; an empty color or empty content causes the parse to fail.Supported color formats:
c00) -- automatically prefixed with#cc0000) -- automatically prefixed with#blue,red)rgb(255,0,0))Wikidot syntax examples:
##c00|Apple##-- red text reading "Apple"##blue|Ocean##-- blue text reading "Ocean"##rgb(0,128,0)|Green text##-- CSS function colorProduces a
"color"AST element with the resolved color value and nested inline elements.