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

Sanitize newlines and pipes from markdown table cells #482

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

bmish
Copy link
Owner

@bmish bmish commented Oct 13, 2023

Having a | or \n in rule/config properties that we use could break rendering of markdown tables, so escape them.

We could consider switching to a third-party library for this if available, although note that we want to allow most other markdown to be used.

Related:

@bmish bmish added the bug Something isn't working label Oct 13, 2023
lib/string.ts Dismissed Show dismissed Hide dismissed
@bmish bmish requested a review from ddzz October 13, 2023 19:53
@bmish bmish merged commit 02bac96 into main Oct 13, 2023
5 of 9 checks passed
@bmish bmish deleted the sanitize-markdown-table branch October 13, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant