From 4ef50642ad9c61e76bc32e27e18a5ed6ac87ef18 Mon Sep 17 00:00:00 2001 From: Dan Lister Date: Thu, 12 Dec 2024 13:44:44 +0000 Subject: [PATCH] Fixed an issue where bold markdown would not work inside a property description --- .../src/common/filters/simpleMarkdown.filter.js | 4 ++-- .../src/common/filters/simpleMarkdown.filter.js.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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();