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

fix: correction in markdown table alignment #2077

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

fernando182gomez
Copy link
Collaborator

@fernando182gomez fernando182gomez commented Nov 30, 2023

Description

Correction for markdown tables alignment

What's included?

Fix for the alignment in the markdown tables

General Tests for Every PR

  • npm run start still works.
  • npm run lint passes.
  • npm run stylelint passes.
  • npm test passes and code coverage is not lower.
  • npm run build still works.

Screenshot 2023-11-29 at 23 54 43

function changeStyleAlignmentToClass(html: string) {
if (html) {
const document: Document = new DOMParser().parseFromString(
html,

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
DOM text
is reinterpreted as HTML without escaping meta-characters.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be valid catch here. consider using some like DomSanitizer before parsing this

https://angular.io/api/platform-browser/DomSanitizer#sanitize

@owilliams320
Copy link
Collaborator

closes #2008

function changeStyleAlignmentToClass(html: string) {
if (html) {
const document: Document = new DOMParser().parseFromString(
html,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be valid catch here. consider using some like DomSanitizer before parsing this

https://angular.io/api/platform-browser/DomSanitizer#sanitize

@owilliams320 owilliams320 merged commit f3bdc02 into main Dec 19, 2023
6 checks passed
@owilliams320 owilliams320 deleted the bugfix/markdown-table-issues branch December 19, 2023 18:47
@owilliams320
Copy link
Collaborator

🎉 This PR is included in version 7.4.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

None yet

2 participants