Converts Quill's Delta format to XML or HTML (insert ops only) with properly nested lists. This is a c# port of the javascript version by nozer.
Install with package manager:
Install-Package Quill.Delta
or with nuget:
nuget install Quill.Delta
Or with dotnet:
dotnet add package Quill.Delta
Quill.Delta can also be installed from nuget.org.
using Quill.Delta;
using Newtonsoft.Json.Linq;
var deltaOps = JArray.Parse(@"[
{insert: ""Hello\n""},
{insert: ""This is colorful"", attributes: {color: '#f00'}}
]");
var htmlConverter = new HtmlConverter(deltaOps);
string html = htmlConverter.Convert();
var xmlConverter = new XmlConverter(deltaOps);
XmlDocument xml = xmlConverter.Convert();
See the full documentation on github