Open ulises-castro opened 3 weeks ago
please provide a sample where you got this
please provide a sample where you got this
What do you mean?
I took that sh from the original article, I think we can use some code highlighter to show the code and extract with the crawler
A url
I had a look at this, we are using DOMPurify, which already strips those code blocks. It is possible to change the code like this:
const purifiedHTML = purify.sanitize(htmlContent, {ADD_TAGS: ["pre", "code", "span"]});
Then the code block is actually retained, but then we are using mozilla/readability and that ignores the code block then. I don't see any way to configure this, so that would definitely be a bigger rework.
Describe the feature you'd like
It would be great if you can save articles along with code snippets, because it seems like it does not include them.
Maybe if we have "a flag" to include code snippets or not would be nice.
Describe the benefits this would bring to existing Hoarder users
You can take notes and review code implementation later e.g, when you review a API and want it to back to the last position you have been.
Can the goal of this request already be achieved via other means?
I'm not sure yet about this.
Have you searched for an existing open/closed issue?
Additional context
No response