News for hackers. Stuff that matters.
Re:Show HN: Metadocs, kinda like Reddit, but built into ever... by ritinkar on Tuesday November 08, 2022 @04:05PM (#33524286)
If you're asking how the "Highlights" feature works, its using something called text fragments.

When the original text changes then the highlight is dead. Meaning you can still discuss it, but it will no longer be highlighted in the window.

You can read more about text fragments here - https://web.dev/text-fragments/

Re:Show HN: Metadocs, kinda like Reddit, but built into ever... by o_____________o on Thursday November 10, 2022 @11:51AM (#33549328)
That seems like it would be a problem for something like a documentation site, where even small changes to the text would break the entire highlight. Maybe you can implement something via diff to maintain a fuzzier anchor.