🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

asciimath

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

asciimath

0.2.0-beta
NuGet
Version published
Maintainers
0
Created
Source

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.

Keywords

asciimath

FAQs

Package last updated on 21 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts