Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom UseHardBreaks extension #342

Merged
merged 7 commits into from
Jan 24, 2025

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Jan 24, 2025

Closes #335

@reakaleek reakaleek requested a review from Mpdreamz January 24, 2025 12:49
@reakaleek reakaleek self-assigned this Jan 24, 2025
The `DisableHtmlWithExceptions` logic was removed and replaced with a simpler `UseHardBreaks` implementation for handling `<br>` tags. This refactor simplifies the markdown pipeline and improves maintainability while retaining support for hard breaks.
@Mpdreamz
Copy link
Member

@reakaleek I've amended the PR with what I was thinking.

We now create a dedicated parser for <br> tags adding a new HardBreak element to the markdown AST.

@Mpdreamz Mpdreamz changed the title Add custom DisableHtmlWithExceptions extension Add custom UseHardBreaks extension Jan 24, 2025
@reakaleek reakaleek enabled auto-merge (squash) January 24, 2025 14:54
@reakaleek reakaleek merged commit f2b80ec into main Jan 24, 2025
5 checks passed
@reakaleek reakaleek deleted the feature/custom-disable-html-extension branch January 24, 2025 14:56
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.

Support <br> in docs-builder
2 participants