Skip to content

Commit

Permalink
New comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jan 8, 2024
1 parent 2567ad8 commit 79b6335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/js/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ function replaceBlockquotesWithCalloutsInDocs() {
});

// GitHub styled notes...
replaceBlockquote(el, /^<strong>(.*?)<\/strong>(?:<br>\n?)?/, (type) => {
replaceBlockquote(el, /^\[\!(.*?)\](?:<br>\n?)?/, (type) => {
switch (type) {
case "Warning":
case "WARNING":
return ['/img/callouts/exclamation.min.svg', 'bg-red-600'];
case "Note":
case "NOTE":
return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600'];
default:
return [null, null];
Expand Down

0 comments on commit 79b6335

Please sign in to comment.