1.1.1 • Published 5 months ago

mathdeli2dollar v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

mathdeli2dollar

mathdeli2dollar is a simple library to convert LaTeX math delimiters to dollar signs. It transforms LaTeX mathematical expressions wrapped in \[ ... \] and \( ... \) into $$ ... $$ and $ ... $, respectively.

Installation

You can install the package via npm:

npm install mathdeli2dollar

Usage

Example

Import the mathdeli2dollar function and pass a string containing LaTeX expressions:

import mathdeli2dollar from "mathdeli2dollar";

const text = "Example: \\(x^2 + y^2 = z^2\\)";
console.log(mathdeli2dollar(text));

Expected Output

The function will convert the input and return the text with the delimiters changed:

Example: $x^2 + y^2 = z^2$

Contributing

If you find any bugs or would like to add new features, feel free to open an issue or submit a pull request.

Contribution Steps

  1. Fork the repository.

  2. Create a new branch for your feature.

  3. Make your changes and ensure everything works correctly.

  4. Commit your changes following semantic commit conventions.

  5. Open a Pull Request with a detailed description of the changes.

1.1.1

5 months ago

1.1.0

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago