Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convertAsciiMathToLatex converting fractions only if the numerator is in brackets. #2530

Open
stephtr opened this issue Sep 29, 2024 · 0 comments

Comments

@stephtr
Copy link
Contributor

stephtr commented Sep 29, 2024

Description

According to the docs, convertAsciiMathToLatex("1/2") should return "\frac{1}{2}". Currently, it only converts it to a frac if the numerator is in brackets, eg inputting "(1)/2"`.

Steps to Reproduce

(Required) Provide steps that are specific and repeatable

import { convertAsciiMathToLatex } from 'mathlive';
console.log(convertAsciiMathToLatex('1/2'));

Actual Behavior

Returns '1/2'.

Expected Behavior

image

Environment

MathLive version 0.101.0

Operating System macOS

Browser Edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant