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
Version 8 is now live.
It add a pretty good selectors support that allows to match on style attribute as well:
{selectors: [{selector: 'p[style*="display:inline"i]',format: 'inline'},{selector: 'a[style*="display:block"i]',format: 'block'}// might need a custom formatter in case a.href etc is needed]}
At this point it seems unlikely html-to-text will go as far as doing full cascade style sheets though.
HTML CSS is not really useful for text rendering in the most part - plain text medium is way too different.
Hi,
I mean some site has their rule such as make
a
block , in this case, need a\n
in text.For example:
But styles always not write with element, usually in css, it would be nice to load several .css files to precisely convert html to text.
The text was updated successfully, but these errors were encountered: