3 ms·
Thank you! this is exactly why there's support for this specific use case- https://github.com/romansky/dom-to-semantic-markdown/blob/main/src/core/domUtils.ts h
by leroman 2y ago
Thank you! this is exactly why there's support for this specific use case-
https://github.com/romansky/dom-to-semantic-markdown/blob/main/src/core/domUtils.ts https://github.com/romansky/dom-to-semantic-markdown/blob/ma...
(see `findContentByScoring`)
And if you pass an optional flag `extractMainContent` it will use some heuristics to find the main content container if there is no such tag..