Text2Math (https://text2math.vercel.app) is a web application that allows you to convert text into mathematical equations using LaTeX or AsciiMath. The application also includes a toolbar that enables users to change text alignment, background color, and text color.
- Render Mathematical Equations: Supports both LaTeX and AsciiMath syntax.
- Inline Math: You can write inline math such as (2^2) using LaTeX or
2^2
using AsciiMath. - Customizable Appearance: Use the toolbar to adjust text alignment, background color, and text color.
- Download or Copy Image: Easily download the generated image as a PNG or copy it to the clipboard. This solves the problem of sharing mathematical text quickly on social media, enhancing readability.
-
Clone the repository:
git clone https://github.com/alvarosh15/text2math.git cd text2math
-
Install dependencies:
npm install
-
Run the application:
npm run dev
- Enter your text with LaTeX or AsciiMath syntax.
- Use the toolbar to adjust text alignment, background color, and text color.
- Click on the download button to save the preview as a PNG image.
- Click on the copy button to copy the preview to the clipboard.
Contributions are welcome! Please fork the repository and submit a pull request for any improvements.
This project is licensed under the MIT License.