Skip to content

Commit a19b2a3

Browse files
authored
Merge pull request #192 from patternfly/iss-189
Relax admonition regex
2 parents cbe2493 + 696f662 commit a19b2a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/module/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const useAdmonitionShowdownExtension = () => {
2727
return React.useMemo(
2828
() => ({
2929
type: 'lang',
30-
regex: /\[([\d\w\s-()$!]+)]{{(admonition) ([\w-]+)}}/g,
30+
regex: /\[(.+)]{{(admonition) ([\w-]+)}}/g,
3131
replace: (
3232
text: string,
3333
content: string,

0 commit comments

Comments
 (0)