Prowl.Quire
3.5.0
See the version list below for details.
dotnet add package Prowl.Quire --version 3.5.0
NuGet\Install-Package Prowl.Quire -Version 3.5.0
<PackageReference Include="Prowl.Quire" Version="3.5.0" />
<PackageVersion Include="Prowl.Quire" Version="3.5.0" />
<PackageReference Include="Prowl.Quire" />
paket add Prowl.Quire --version 3.5.0
#r "nuget: Prowl.Quire, 3.5.0"
#:package Prowl.Quire@3.5.0
#addin nuget:?package=Prowl.Quire&version=3.5.0
#tool nuget:?package=Prowl.Quire&version=3.5.0
Prowl.Quire
A fast Markdown parser for the Prowl Game Engine ecosystem. Quire turns Markdown text into a flat tree of blocks and inlines. It has no fonts, no layout and no rendering, so it can be used anywhere.
Usage
using Prowl.Quire;
var document = MarkdownDocument.Parse(source);
foreach (int block in document.ChildrenOf(document.Root))
{
var node = document.GetBlock(block);
switch (node.Kind)
{
case BlockKind.Heading:
Console.WriteLine($"h{node.Level}: {document.BlockText(block)}");
break;
case BlockKind.CodeBlock:
Console.WriteLine($"code ({document.TextOf(node.Info)}): {document.TextOf(node.Text)}");
break;
}
}
The tree
Blocks and inlines live in two flat arrays and are linked by index. FirstChild and NextSibling walk the tree, and -1 terminates. There are no
per-node lists and no substrings.
foreach (int child in document.ChildrenOf(block)) { } // block children
foreach (int inline in document.InlinesOf(block)) { } // a block's inline run
foreach (int child in document.InlineChildrenOf(inline)) { } // nested inlines
Three text accessors, which differ in what they cover:
document.TextOf(span) // one TextSpan
document.PlainText(inline) // one inline and its descendants
document.PlainTextRun(first) // an inline, its siblings and their descendants
document.BlockText(block) // every inline attached to a block
A link label is a run, so PlainTextRun(link.FirstChild) is what reads it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Prowl.Quire:
| Package | Downloads |
|---|---|
|
Prowl.Paper
A powerful immediate mode .net UI Library powering the Prowl Game Engine! |
GitHub repositories
This package is not used by any popular GitHub repositories.