AsciiMath 0.3.0-beta

This is a prerelease version of AsciiMath.
dotnet add package AsciiMath --version 0.3.0-beta                
NuGet\Install-Package AsciiMath -Version 0.3.0-beta                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AsciiMath" Version="0.3.0-beta" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AsciiMath --version 0.3.0-beta                
#r "nuget: AsciiMath, 0.3.0-beta"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AsciiMath as a Cake Addin
#addin nuget:?package=AsciiMath&version=0.3.0-beta&prerelease

// Install AsciiMath as a Cake Tool
#tool nuget:?package=AsciiMath&version=0.3.0-beta&prerelease                

AsciiMath

Build status NuGet

An AsciiMath parser for .NET that converts string AsciiMath expressions into MathML.

This is a .NET port of the ruby AsciiDoctor/AsciiMath implementation

Add the package to your application using

dotnet add package AsciiMath --prerelease

To use the parser, call the static Parser.ToMathMl(input) method with the AsciiMath string

var asciiMath = "int_-1^1 sqrt(1-x^2)dx = pi/2";
var converted = Parser.ToMathMl(asciiMath);
Console.WriteLine(converted);
// prints <math><msub><mo>&#x222B;</mo><mo>&#x2212;</mo></msub><msup><mn>1</mn><mn>1</mn></msup><msqrt><mrow><mn>1</mn><mo>&#x2212;</mo><msup><mi>x</mi><mn>2</mn></msup></mrow></msqrt><mi>dx</mi><mo>=</mo><mfrac><mi>&#x3C0;</mi><mn>2</mn></mfrac></math>

Status

This parser is currently in early development and may evolve both in the features it provides and the interface it uses.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.0-beta 324 4/22/2024
0.2.0-beta 64 4/21/2024
0.1.1-beta 61 4/21/2024
0.1.0-beta 65 4/21/2024

Features
- Render known mathematical operators as <mo> instead of <mi> as it renders better in the browser


See https://github.com/andrewlock/AsciiMath/blob/main/CHANGELOG.md#v030-beta for more details.