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
I tried with a custom rule, and replacing the incriminated line with childNodes().map((e) => e.textContent).join() renders all the code.
I'm not sure how to solve the language identification, that info appears two divs up instead of in the first children. I don't know if it a standard of some kind or a particular case of this website (it uses jekyll and a bootstrap theme).
Hi sanzoghenzo, I don't think that's a standard for code blocks.
In the custom rule, you can get the parents or maybe any elements you want, by using the dom api.
For example(may not work): node.asElement()?.parent?.parent?.classes;
Hi, first of all many thanks for your work, I'm using this library in my android app and it's working really well!
Unfortunately, a user of the app opened an issue because some code blocks in a webpage don't get converted: only the first line is displayed.
That specific webpage was created with Jekyll from a markdown source, so I'm expecting that many other websites could be affected.
This is an excerpt from the page:
The issue is at this line: only the first child of the
code
tag is read.The text was updated successfully, but these errors were encountered: