-
Notifications
You must be signed in to change notification settings - Fork 2
Preserve empty inline nodes #167
Comments
That's right indeed. So far only the ones with a font awesome class will be parsed but it would be nice to have some ad-hoc system for that.
|
Does it change something ? I mean, we could still parse it, have an empty node "storing" the parsed value, and if it truly does not have any effect for this type of content then the rendering will ignore it I guess or render it just as it was parsed and the effect will be the same anyway ?
Probably, yes.
I don't understand why this comes up in the discussion. Storing empty inline node classes is a generic issue, not realted to FontAwesome. It just happens that the FontAwesome plugin already implements a similar albeit limited form of this. I'm not sure we would need the invisible spaces for the range in the generic issue, which is basically "don't loose stuff by parsing them in our abstraction".
Sure, but that's not a reason to loose it, is it ?
That's a current limitation. Ideally, modifiers would be rendered independently for every node.
|
I agree with @dmo-odoo.
Is it important to systematically have correspondance? In html |
Those were just thoughts hey guys, not objections ;-) Things that I thought deserved some attention. I also don't think we should lose the html tag but I do think it's kind of strange to have it all over the place while html is a plugin ^^
|
I don't want |
The |
In html when I parse an inline node (e.g. span, b, i) that has not text inside:
It disappear in the vdocument.
We should keep these nodes as they might represent something in the context they are used. For instance, they can have content in css:
Maybe we could handle that case with an
EmptyNode
that is created when no char text is found?The text was updated successfully, but these errors were encountered: