@patternfly/quickstarts 2.2.4 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/quickstarts",
3
- "version": "2.2.4",
3
+ "version": "2.3.0",
4
4
  "description": "PatternFly quick starts",
5
5
  "files": [
6
6
  "src",
@@ -27,7 +27,7 @@ const useAdmonitionShowdownExtension = () => {
27
27
  return React.useMemo(
28
28
  () => ({
29
29
  type: 'lang',
30
- regex: /\[([\d\w\s-()$!]+)]{{(admonition) ([\w-]+)}}/g,
30
+ regex: /\[(.+)]{{(admonition) ([\w-]+)}}/g,
31
31
  replace: (
32
32
  text: string,
33
33
  content: string,
@@ -11,7 +11,7 @@ const useInlineCopyClipboardShowdownExtension = () => {
11
11
  return React.useMemo(
12
12
  () => ({
13
13
  type: 'lang',
14
- regex: /`([^`](.*?)[^`])`{{copy}}/g,
14
+ regex: /```[\n]\s*((((?!```).)*?\n)+)\s*```{{copy}}/g,
15
15
  replace: (
16
16
  text: string,
17
17
  group: string,
@@ -66,7 +66,7 @@ const HelpTopicPanelContent: React.FC<HelpTopicPanelContentProps> = ({
66
66
  const panelBodyItems = (
67
67
  <>
68
68
  {paddingContainer(<QuickStartMarkdownView content={activeHelpTopic?.content} />)}
69
- {activeHelpTopic?.links?.length && <Divider />}
69
+ {!!activeHelpTopic?.links?.length && <Divider />}
70
70
  {paddingContainer(
71
71
  <Stack hasGutter>
72
72
  {activeHelpTopic?.links?.map(({ href, text, newTab, isExternal }, index) => {
@@ -18,7 +18,7 @@ type QuickStartTaskHeaderProps = {
18
18
  size?: 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
19
19
  isActiveTask?: boolean;
20
20
  onTaskSelect: (index: number) => void;
21
- chidlren?: React.ReactNode;
21
+ children?: React.ReactNode;
22
22
  };
23
23
 
24
24
  const TaskIcon: React.FC<{