Skip to content

Support text highlights in div-based content containers#709

Open
clehene wants to merge 1 commit intoobsidianmd:mainfrom
clehene:codex/fix-706-div-selection
Open

Support text highlights in div-based content containers#709
clehene wants to merge 1 commit intoobsidianmd:mainfrom
clehene:codex/fix-706-div-selection

Conversation

@clehene
Copy link
Copy Markdown

@clehene clehene commented Feb 26, 2026

Summary

Allow text-selection highlight splitting/fallback to work when content is structured in DIV containers.

Why

Some sites render body text in DIV blocks; previous split/fallback constraints could skip highlight creation entirely.

Changes

  • Expand text-selection block detection to include DIV.
  • Keep element-highlighting allow-list behavior unchanged.
  • Use a text-highlight-specific container allow-list for split/fallback logic.

Fixes #706

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

Successfully merging this pull request may close these issues.

Text highlights can be skipped on div-based content blocks (example: cnn.com)

1 participant