Open nokimaro opened 9 years ago
I think if setParseContent()
is true
and we have only OptionValidator
then we must parse content ({param}
) even if option invalid.
Or it's unsafe?
@nokimaro No, it isn't. Invalid node should be let as-is, and the content "inside" it (which isn't really inside it, beacuse the node should be removed from the AST/DOM when it is invalid) should be normally parsed. That's the thing, the content "inside" invalid node isn't really a child node, because there's no (valid) parent node.
Code definition from example to
[color]
withOptionValidator
Here is text with invalid
option
in[color]
Result is