You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
9x slower just to add an attribute on each link. 😢
It would be lovely if custom renderers could call the C code to render any node type that wasn't overridden. That way, the commonmarker_html_renderer would be able to perform similarly to commonmarker_two_step (1.6x slower instead of 8x)
The text was updated successfully, but these errors were encountered:
Yes, I think that makes sense. I do believe the custom renderer right now is an "all or nothing" override. And I do believe it's possible in Ruby to some identification of overwritten child methods. I'll put this as a TODO for now.
PS: if Shopify is relying on Commonmarker, please consider sponsoring the project. Thanks. ✌️
Let me start by saying that I'm not sure this is possible.
I need to add a custom attribute to all links. So I made a custom renderer:
and I then use it:
It works perfectly, but of course it is slower. How slow?
9x slower just to add an attribute on each link. 😢
It would be lovely if custom renderers could call the C code to render any node type that wasn't overridden. That way, the
commonmarker_html_renderer
would be able to perform similarly tocommonmarker_two_step
(1.6x slower instead of 8x)The text was updated successfully, but these errors were encountered: