I had the same issue as described in Underline ParseRule that excludes Links and was glad to find that it pointed to a workable solution.
However, instead of the solution that was proposed in the referenced link, I was wondering if you considered passing the dom node to ParseRule#getAttrs as a second argument when the
style property of the ParseRule has a value. On the face of it, this seems like a small improvement, which would add a lot of flexibility to parse rules based on styles.
What are your thoughts?