Skip to content

Commit 7609a87

Browse files
chore: fix readme generation for info blocks
1 parent 2d33727 commit 7609a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/sync-readmes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ const sanitize = (gb) => {
2121
.replace('{% endcode-tabs %}', '')
2222
.replace(/{% code-tabs-item title=".+?" %}/g, '')
2323
.replace('{% endcode-tabs-item %}', '')
24-
.replace('{% endhint %}', '</b>')
24+
.replace('{% endhint %}', '\n--------')
2525
.replace(/{% hint style="(.+?)" %}\n/g, (_, style) => {
2626
const styleMap = {
2727
warning: '⚠️',
2828
info: 'ℹ️',
2929
danger: '🚨',
3030
};
31-
return `${styleMap[style] || 'ℹ️'} <b>`;
31+
return `\n--------\n\n${styleMap[style] || 'ℹ️'} `;
3232
});
3333
};
3434

0 commit comments

Comments
 (0)