We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50d9da2 commit 635a654Copy full SHA for 635a654
packages/utilities/src/utilities/markdownToHtml/markdownToHtml.js
@@ -2,7 +2,7 @@ import { settings } from 'carbon-components';
2
const { prefix } = settings;
3
4
const _htmlTagRegex = /<.*?>/g;
5
-const _cleanStringRegex = /\n|\s{2,}|( )/g;
+const _cleanStringRegex = /\n|\s{2,}|(&.+;)/g;
6
const _italicRegex = /[_*](.*?)[_*]/g;
7
const _boldRegex = /[_*]{2}(.*?)[_*]{2}/g;
8
const _paraRegex = /\n\n/g;
0 commit comments