Skip to content

Commit

Permalink
chore: fix readme generation for info blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 3, 2018
1 parent 2d33727 commit 7609a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/sync-readmes.js
Expand Up @@ -21,14 +21,14 @@ const sanitize = (gb) => {
.replace('{% endcode-tabs %}', '')
.replace(/{% code-tabs-item title=".+?" %}/g, '')
.replace('{% endcode-tabs-item %}', '')
.replace('{% endhint %}', '</b>')
.replace('{% endhint %}', '\n--------')
.replace(/{% hint style="(.+?)" %}\n/g, (_, style) => {
const styleMap = {
warning: '⚠️',
info: 'ℹ️',
danger: '🚨',
};
return `${styleMap[style] || 'ℹ️'} <b>`;
return `\n--------\n\n${styleMap[style] || 'ℹ️'} `;
});
};

Expand Down

0 comments on commit 7609a87

Please sign in to comment.