Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev committed May 9, 2024
1 parent 127d189 commit eab9ac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/doc/html.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ export function preprocessElements({ filename }) {
node.type = 'paragraph';
node.children.shift();
node.children.unshift(...paragraph.children);
text.value = text.value.replace('Warning:', '');
text.value = text.value.replace(/^Warning:\s*/, '');
node.children.unshift({ type: 'html', value: '<strong>Warning:</strong> ' });
node.children.unshift({
type: 'html',
value: '<div class="api_warning">',
Expand Down

0 comments on commit eab9ac6

Please sign in to comment.