Return raw markdown in the Delivery API (#14429)

* Return raw markdown in the Delivery API

* Reflect markdown value converter changes in the unit tests
This commit is contained in:
Kenn Jacobsen
2023-06-22 10:48:45 +02:00
committed by GitHub
parent 0cdea6120b
commit 1fb8ea0411
2 changed files with 3 additions and 4 deletions

View File

@@ -72,7 +72,6 @@ public class MarkdownEditorValueConverter : PropertyValueConverterBase, IDeliver
return string.Empty;
}
var mark = new Markdown();
return mark.Transform(markdownString);
return markdownString;
}
}

View File

@@ -17,8 +17,8 @@ namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.DeliveryApi;
[TestFixture]
public class MarkdownEditorValueConverterTests : PropertyValueConverterTests
{
[TestCase("hello world", "<p>hello world</p>")]
[TestCase("hello *world*", "<p>hello <em>world</em></p>")]
[TestCase("hello world", "hello world")]
[TestCase("hello *world*", "hello *world*")]
[TestCase("", "")]
[TestCase(null, "")]
[TestCase(123, "")]