asciidoctor / asciimath

Asciimath parser
MIT License
24 stars 16 forks source link

function names should use <mi> tag #6

Closed giuliano52 closed 6 years ago

giuliano52 commented 6 years ago

Hello, if an expression contain an function (e.g. sin, cos, ...) it should be return <mi> tag instead of <mo>

Example:

sin(x) with is encoded as

<math><mo>sin</mo><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow></math>

but is should something like:

`

sin ( x )

`

pepijnve commented 6 years ago

I had a quick look at the code already. Looks like the parser is not recognising sin as an identifier correctly. I'll try to get this fixed asap.

giuliano52 commented 6 years ago

Great, thank you