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