Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Article on substack skips the headings #928

Open
juliomuhlbauer opened this issue Dec 17, 2024 · 2 comments
Open

Article on substack skips the headings #928

juliomuhlbauer opened this issue Dec 17, 2024 · 2 comments

Comments

@juliomuhlbauer
Copy link

juliomuhlbauer commented Dec 17, 2024

For example: https://www.lennysnewsletter.com/p/how-to-kickstart-and-scale-a-marketplace-2e5

It skips headings like this:

1. Word of mouth
For me, one of the most fascinating learnings from this phase of the research was how impactful word-of-mouth was for early growth of most of today’s biggest marketplace businesses — it was the most important growth channel for over half of the companies. Though this isn’t actually a growth “lever”, it was an enormous growth driver for these companies, and was a strong early signal of Product/Market Fit. Pro tip: If you don’t know what share of your growth is coming from word-of-mouth, you should find out.
@danielnixon
Copy link
Contributor

Those headings have a css class of .header-anchor-post which is matching the unlikelyCandidates regex thanks to the word "header".

Running this before Readability is a workaround:

document.querySelectorAll(".header-anchor-post").forEach((e) => e.classList.remove("header-anchor-post")) 

@danielnixon
Copy link
Contributor

#868 looks like it would resolve this if merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants