Fix section embed viewport clipping#39
Conversation
Replace nth-child based section hiding with CodeMirror decorations so embedded section ranges are anchored to document positions instead of virtualized DOM line nodes.
|
I hate to be that c*nt who does AI-genned PRs, but this has fixed issues I've experienced locally so why not? Thanks for making this plugin. Discovered obsidian 5 days ago and am deep in this rabbit hole clearly. SummaryFixes section embeds showing the wrong range of content, including cases where the top of the target section is clipped and the next section heading appears inside the embed. What Changed
WhyCodeMirror 6 virtualizes Testing
|
|
Thank you! My apologies - I had some critical fixes on the main branch that was long due for a release. Is this still a problem with the latest release, and if it is - could you send some steps to recreate/screenshots? |
|
Hey man - yes latest release seems to have patched this. Thanks! |
Replace nth-child based section hiding with CodeMirror decorations so embedded section ranges are anchored to document positions instead of virtualized DOM line nodes.