I’m trying to get multiple Marks by parsing an html tag with attributes, one mark per attribute. For example I want to get 2 marks by parsing
<font size="7" color="red">text</font>.
I thought about creating a Mark for
tag:'font' with several attributes, but it doesn’t look like a right way to go, especially if I also have different rules for font-size and color (based on style or css class) and a bunch of other attributes.
Defining 2 mark specs with
tag:'font[color]' won’t work. It stops after matching first rule, and rules that defined later in schema are never tested example. For nodes this behavior makes sense, but for marks I would expect all rules to be tested, like with
Is there a way to change that behavior and test against all defined tag rules when parsing Marks?