Skip to content

fix(gitbook): Makes content_selector work well when configured as a CSS selector#516

Open
wForget wants to merge 1 commit intolangchain-ai:mainfrom
wForget:dev
Open

fix(gitbook): Makes content_selector work well when configured as a CSS selector#516
wForget wants to merge 1 commit intolangchain-ai:mainfrom
wForget:dev

Conversation

@wForget
Copy link

@wForget wForget commented Jan 29, 2026

Although the current description of content_selector is: The CSS selector for the content to load., it seems to only be configurable as an HTML element name.
Use soup.select_one(self.content_selector)instead ofsoup.find(self.content_selector)to makescontent_selector` work well when it configured as a CSS selector

closes #515

@github-actions github-actions bot added fix and removed fix labels Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The content_selector does not work well when configured as a CSS selector

1 participant