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:
@@ -72,7 +72,6 @@ public class MarkdownEditorValueConverter : PropertyValueConverterBase, IDeliver
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
var mark = new Markdown();
|
||||
return mark.Transform(markdownString);
|
||||
return markdownString;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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, "")]
|
||||
|
||||
Reference in New Issue
Block a user