diff --git a/src/Umbraco.Web.UI.Client/src/common/filters/simpleMarkdown.filter.js b/src/Umbraco.Web.UI.Client/src/common/filters/simpleMarkdown.filter.js index 58d5b0ed9179..da0d4b9c70fa 100644 --- a/src/Umbraco.Web.UI.Client/src/common/filters/simpleMarkdown.filter.js +++ b/src/Umbraco.Web.UI.Client/src/common/filters/simpleMarkdown.filter.js @@ -11,8 +11,8 @@ angular.module("umbraco.filters").filter('simpleMarkdown', function () { } return text - .replace(/\*\*(.*)\*\*/gim, '$1') - .replace(/\*(.*)\*/gim, '$1') + .replace(/\*\*(.+?)\*\*/gim, '$1') + .replace(/\*(.+?)\*/gim, '$1') .replace(/!\[(.*?)\]\((.*?)\)/gim, "$1") .replace(/\[(.*?)\]\((.*?)\)/gim, "$1") .replace(/\n/g, '
').trim(); diff --git a/src/Umbraco.Web.UI.Client/src/common/filters/simpleMarkdown.filter.js.js b/src/Umbraco.Web.UI.Client/src/common/filters/simpleMarkdown.filter.js.js index d33b96916a48..f3c242f55da4 100644 --- a/src/Umbraco.Web.UI.Client/src/common/filters/simpleMarkdown.filter.js.js +++ b/src/Umbraco.Web.UI.Client/src/common/filters/simpleMarkdown.filter.js.js @@ -11,8 +11,8 @@ angular.module("umbraco.filters").filter('simpleMarkdown', function () { } return text - .replace(/\*\*(.*)\*\*/gim, '$1') - .replace(/\*(.*)\*/gim, '$1') + .replace(/\*\*(.+?)\*\*/gim, '$1') + .replace(/\*(.+?)\*/gim, '$1') .replace(/!\[(.*?)\]\((.*?)\)/gim, "$1") .replace(/\[(.*?)\]\((.*?)\)/gim, "$1") .replace(/\n/g, '
').trim();