Skip to content

Commit

Permalink
fix: markdown table within the description attribute cannot be render…
Browse files Browse the repository at this point in the history
…ed correctly (#831)
  • Loading branch information
htmlin committed Jun 17, 2024
1 parent 23c8c01 commit a8cffdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const lessThan =
export const greaterThan =
/(?<!(button|code|details|summary|hr|br|span|strong|small|table|thead|tbody|td|tr|th|h1|h2|h3|h4|h5|h6|title|p|em|b|i|u|strike|bold|a|li|ol|ul|img|svg|div|center|\/|\s|"|'))>/gu;
export const codeFence = /`{1,3}[\s\S]*?`{1,3}/g;
export const curlyBrackets = /([{|}])/g;
export const curlyBrackets = /([{}])/g;
export const codeBlock = /(^```.*[\s\S]*?```$|`[^`].+?`)/gm;

export function clean(value: string | undefined): string {
Expand Down

0 comments on commit a8cffdf

Please sign in to comment.