Skip to content
Permalink
Browse files

chore: fix readme generation for info blocks

  • Loading branch information
MarshallOfSound committed May 3, 2018
1 parent 2d33727 commit 7609a87c261ed4da3abf81093ade86157ef8790b
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/sync-readmes.js
@@ -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] || 'ℹ️'} `;
});
};

0 comments on commit 7609a87

Please sign in to comment.
You can’t perform that action at this time.