[EXTERNAL] docs(matrix-transposition): precise title highlighting in notions links#3008
[EXTERNAL] docs(matrix-transposition): precise title highlighting in notions links#3008pedrodesu merged 3 commits into01-edu:masterfrom
matrix-transposition): precise title highlighting in notions links#3008Conversation
|
Hello @sadiqui! Thank you for the PR. I have a question, couldn't one just make use of the fact that in the docs each one of those headers have anchors? I believe it should work in every browser just as well as we're simply pointing to valid elements with ids. Do let me know. If so, you can make the change yourself if you so desire. Thank you! |
matrix-transposition): precise title highlighting in notions linksmatrix-transposition): precise title highlighting in notions links
|
@pedrodesu You're absolutely right, using anchor links is a much simpler and more broadly compatible solution. My initial goal was to improve the accuracy of highlights, but I agree that pointing directly to headers via anchors is cleaner and more maintainable. I'll go ahead and update the PR to use anchor links instead. Thanks for the suggestion! |
Previously, URLs used the
highlight=parameter to emphasize specific sentences in shared documentation links. However, this approach highlighted every individual occurrence of each word, rather than treating phrases as a single unit, leading to cluttered and imprecise highlights on the page.This PR replaces the
highlight=parameter with the#:~:text=fragment syntax, enabling exact phrase-level highlighting in supported browsers (Chrome, Edge, and others), while keeping source URLs the same.