defuddle
defuddle copied to clipboard
Get the main content of any page as Markdown.
`SubstackExtractor.extractPreloadData` does not find the post data on current Substack post pages, so the extractor falls back to the DOM for metadata. The visible effect is that `published` loses its...
hey, i saw your [hn post](https://news.ycombinator.com/item?id=44067409) for defuddle, it seems it gathered quite some recognition (418 points, 68 comments) one of these might look nice in the readme, either as...
Two loops in `removeByContentPattern` remove an element whose whole text is a label or a counter, but neither skips code. Syntax highlighters put each token (GitHub, Pygments-style) or each line...
## Description Some sites write multi-line code as a paragraph with `` line breaks inside ``, without a ``. Browsers render it as several lines, but Defuddle collapses it into...
Environment | -- | -- defuddle | 0.19.2 linkedom | 0.18.13 Node | 22 (bundled runtime) Host | a terminal UI app using an inline viewport (incremental redraw of its...
Link: https://myanimelist.net/anime/37441 Defuddle title: `Psycho-Pass: Sinners of the System Case.2` Correct title: `Psycho-Pass: Sinners of the System Case.2 - First Guardian`
**Versions:** defuddle 0.19.4 and 0.19.6 (CLI: `defuddle parse --markdown`). The same code is on `main` (3e8bde9f5f). **Pages:** - https://langfuse.com/docs/evaluation/evaluation-methods/code-evaluators - https://langfuse.com/docs/evaluation/evaluation-methods/decision-models The pages put the text of each note box...
**Versions:** defuddle 0.19.4 and 0.19.6 (CLI: `defuddle parse --json --markdown`) **Page:** https://hamel.dev/blog/posts/evals-faq/ (a Quarto page). Each section uses a heading slug as its id, for example: ```html ``` **Result:** 16...
Some selectors in `EXACT_SELECTORS` / `PARTIAL_SELECTORS` remove elements by words in their class or id, whatever the element is: 1. **Header rows.** `.header` removes `` (Pandoc, Quarto, Microsoft Learn). The...
Hello Deffudle applies American typographical rules to French content. In French, question marks and exclamation points are preceded and followed by a space. But when you convert normal text using...