@patternfly/quickstarts 5.4.2 → 5.4.3
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/dist/index.es.js +9 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/quickstarts-base.css +51 -51
- package/dist/quickstarts-full.es.js +9 -2
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts.css +51 -51
- package/dist/quickstarts.min.css +1 -1
- package/package.json +1 -1
- package/src/ConsoleInternal/components/markdown-view.tsx +14 -2
package/dist/index.js
CHANGED
|
@@ -1347,8 +1347,15 @@ const markdownConvert = (markdown, extensions) => tslib.__awaiter(void 0, void 0
|
|
|
1347
1347
|
node.setAttribute('xlink:show', 'new');
|
|
1348
1348
|
}
|
|
1349
1349
|
});
|
|
1350
|
-
|
|
1351
|
-
|
|
1350
|
+
const reverseString = (str) => str.split('').reverse().join('');
|
|
1351
|
+
// replace code fences that end in a double curly brace (which are used by our custom md extensions) with non
|
|
1352
|
+
// markdown formatting related tokens so that marked doesn't try to parse them as code spans
|
|
1353
|
+
//
|
|
1354
|
+
// we want to reverse the string before we do the substitution so that we only match the opening code fence which
|
|
1355
|
+
// corresponds to the closing code fence with the double curly brace
|
|
1356
|
+
const reversedMarkdown = reverseString(markdown);
|
|
1357
|
+
const reverseMarkdownWithSubstitutedCodeFences = reversedMarkdown.replace(/{{```((.|\n)*?)```/g, '{{@@@$1@@@');
|
|
1358
|
+
const markdownWithSubstitutedCodeFences = reverseString(reverseMarkdownWithSubstitutedCodeFences);
|
|
1352
1359
|
const parsedMarkdown = yield marked.marked.parse(markdownWithSubstitutedCodeFences);
|
|
1353
1360
|
// Swap the temporary tokens back to code fences before we run the extensions
|
|
1354
1361
|
let md = parsedMarkdown.replace(/@@@/g, '```');
|