Skip to content

Commit

Permalink
[ENH] Add 'textarea' to disalowwed block tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Domeshow committed Sep 18, 2024
1 parent ca4c470 commit 4aefbb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/toastmark/src/commonmark/blockStarts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface BlockStart {
const reCodeFence = /^`{3,}(?!.*`)|^~{3,}/;
const reHtmlBlockOpen = [
/./, // dummy for 0
/^<(?:script|pre|style)(?:\s|>|$)/i,
/^<(?:script|pre|style|textarea)(?:\s|>|$)/i,
/^<!--/,
/^<[?]/,
/^<![A-Z]/,
Expand Down
2 changes: 1 addition & 1 deletion libs/toastmark/src/commonmark/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { frontMatter as frontMatterStart } from './frontMatter/frontMatterStart'

const reHtmlBlockClose = [
/./, // dummy for 0
/<\/(?:script|pre|style)>/i,
/<\/(?:script|pre|style|textarea)>/i,
/-->/,
/\?>/,
/>/,
Expand Down

0 comments on commit 4aefbb4

Please sign in to comment.