MarkView.Avalonia.Math
12.4.0
dotnet add package MarkView.Avalonia.Math --version 12.4.0
NuGet\Install-Package MarkView.Avalonia.Math -Version 12.4.0
<PackageReference Include="MarkView.Avalonia.Math" Version="12.4.0" />
<PackageVersion Include="MarkView.Avalonia.Math" Version="12.4.0" />
<PackageReference Include="MarkView.Avalonia.Math" />
paket add MarkView.Avalonia.Math --version 12.4.0
#r "nuget: MarkView.Avalonia.Math, 12.4.0"
#:package MarkView.Avalonia.Math@12.4.0
#addin nuget:?package=MarkView.Avalonia.Math&version=12.4.0
#tool nuget:?package=MarkView.Avalonia.Math&version=12.4.0
MarkView.Avalonia.Math
LaTeX math for MarkView.Avalonia, typeset with CSharpMath in .NET: no browser, WebView or JavaScript. Math is opt-in, since $ is common in ordinary prose.
Installation
dotnet add package MarkView.Avalonia.Math
Usage
viewer.UseMath(); // $…$, $$…$$, \(…\) and \[…\]
viewer.UseMath(bracketDelimiters: false); // dollars only
UseMath() also sets the viewer's pipeline, so that the delimiters are parsed. To enable math on every viewer of the application, add the extension and the pipeline at startup:
MarkdownViewerDefaults.Extensions.AddMath();
MarkdownViewerDefaults.Pipeline = new MarkdownPipelineBuilder()
.UseGitHubExtensions()
.UseMathematics()
.UseMathBracketDelimiters()
.Build();
Einstein's famous equation is $E = mc^2$.
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
Formulas follow the theme between light and dark, display formulas get a copy button for their TeX source, and invalid LaTeX shows an error instead of throwing.
Documentation
- Math: delimiters, the bracket rules, copy, streaming and errors.
The documentation site covers the whole library, and the demo shows every feature in the browser.
License
MIT © Nicolas Musset
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- CSharpMath.SkiaSharp (>= 0.5.1)
- MarkView.Avalonia (>= 12.4.0)
- SkiaSharp (>= 4.153.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.