Skip to content

Replace custom elements with divs during standardization#247

Merged
kepano merged 1 commit intokepano:mainfrom
MaxWolf-01:fix/custom-element-inline
Apr 13, 2026
Merged

Replace custom elements with divs during standardization#247
kepano merged 1 commit intokepano:mainfrom
MaxWolf-01:fix/custom-element-inline

Conversation

@MaxWolf-01
Copy link
Copy Markdown
Contributor

Fixes #245

Custom elements (web components with hyphenated tag names like
swiper-container) are treated as inline by Turndown since they
aren't in its block element list. This causes block content inside
them to be concatenated onto a single line.

Fixes kepano#245
@kepano kepano merged commit 123f9cf into kepano:main Apr 13, 2026
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.

Custom elements (web components) treated as inline, breaking markdown output

2 participants