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.
<PackageVersion Include="AsciiMath" Version="0.3.0-beta" />
                    
Directory.Packages.props
<PackageReference Include="AsciiMath" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package AsciiMath@0.3.0-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AsciiMath&version=0.3.0-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=AsciiMath&version=0.3.0-beta&prerelease
                    
Install as a Cake Tool

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.  net9.0 was computed.  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 was computed.  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. 
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 403 4/22/2024
0.2.0-beta 80 4/21/2024
0.1.1-beta 75 4/21/2024
0.1.0-beta 77 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.