Skip to content

Commit

Permalink
Update workspaces/documentation-ui/src/fetch.js
Browse files Browse the repository at this point in the history
Co-authored-by: PierreDemailly <39910767+PierreDemailly@users.noreply.github.com>
  • Loading branch information
fraxken and PierreDemailly authored Nov 30, 2023
1 parent 710b493 commit 5a0fb50
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions workspaces/documentation-ui/src/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ export async function fetchNodeSecureWarningsByTitle(title, options = {}) {
const markdownResponse = await httpResponse.text();
const htmlResponse = kMarkdownConvertor.render(
markdownResponse
.replaceAll("[!IMPORTANT]", "**IMPORTANT**")
.replaceAll("[!NOTE]", "**NOTE**")
.replaceAll("[!CAUTION]", "**CAUTION**")
.replaceAll("[!WARNING]", "**WARNING**")
.replaceAll("[!TIP]", "**TIP**")
.replaceAll("[!IMPORTANT]", "🚨")
.replaceAll("[!NOTE]", "📝")
.replaceAll("[!CAUTION]", "🔶")
.replaceAll("[!WARNING]", "⚠️")
.replaceAll("[!TIP]", "💡")
);

if (cacheReponse) {
Expand Down

0 comments on commit 5a0fb50

Please sign in to comment.