Skip to content

Commit

Permalink
feat(markdown-html): allow style tag
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Jan 17, 2024
1 parent 1c90350 commit 9ad6dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/plugins/markdown-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const comment = '(?:<!(--)|(--)>)'

const HTML_TAG_RE = new RegExp('^(?:' + comment + '|' + openTag + '|' + closeTag + ')')
const HTML_SELF_CLOSE_TAG_RE = new RegExp('^' + selfCloseTag, 'i')
const INVALID_HTML_TAG_NAME_RE = /script|style/i
const INVALID_HTML_TAG_NAME_RE = /script/i
const INVALID_ATTR_NAME_RE = /^on|^xmlns$|^xml$|^aria-|^srcdoc$/i

const SAFE_MODE_ALLOWED_TAGS = [
Expand Down

1 comment on commit 9ad6dca

@vercel
Copy link

@vercel vercel bot commented on 9ad6dca Jan 17, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.