Skip to content

Commit 635a654

Browse files
author
Anna Wen
committed
fix(markdown): check for all html entities
1 parent 50d9da2 commit 635a654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utilities/src/utilities/markdownToHtml/markdownToHtml.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { settings } from 'carbon-components';
22
const { prefix } = settings;
33

44
const _htmlTagRegex = /<.*?>/g;
5-
const _cleanStringRegex = /\n|\s{2,}|(&nbsp;)/g;
5+
const _cleanStringRegex = /\n|\s{2,}|(&.+;)/g;
66
const _italicRegex = /[_*](.*?)[_*]/g;
77
const _boldRegex = /[_*]{2}(.*?)[_*]{2}/g;
88
const _paraRegex = /\n\n/g;

0 commit comments

Comments
 (0)