Skip to content

Commit a8cffdf

Browse files
authored
fix: markdown table within the description attribute cannot be rendered correctly (#831)
1 parent 23c8c01 commit a8cffdf

File tree

1 file changed

+1
-1
lines changed
  • packages/docusaurus-plugin-openapi-docs/src/markdown

1 file changed

+1
-1
lines changed

packages/docusaurus-plugin-openapi-docs/src/markdown/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const lessThan =
6161
export const greaterThan =
6262
/(?<!(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;
6363
export const codeFence = /`{1,3}[\s\S]*?`{1,3}/g;
64-
export const curlyBrackets = /([{|}])/g;
64+
export const curlyBrackets = /([{}])/g;
6565
export const codeBlock = /(^```.*[\s\S]*?```$|`[^`].+?`)/gm;
6666

6767
export function clean(value: string | undefined): string {

0 commit comments

Comments
 (0)