diff --git a/src/components/labels/StylishLabel.js b/src/components/labels/StylishLabel.js index 22680bc4f..a3a7573f7 100644 --- a/src/components/labels/StylishLabel.js +++ b/src/components/labels/StylishLabel.js @@ -107,6 +107,16 @@ export default class CalendarEvents extends Component { color = colorName; } let textContent = match[2]; + if (textContent.startsWith('**')) { + textContent = textContent.replace(/^\*\*|\*\*$/g, ''); + return {textContent}; + } + if (textContent.startsWith('*')) { + textContent = textContent.replace(/^\*|\*$/g, ''); + return ( + {textContent} + ); + } return {textContent}; }