mathdeli2dollar v1.1.1
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 mathdeli2dollarUsage
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
Fork the repository.
Create a new branch for your feature.
Make your changes and ensure everything works correctly.
Commit your changes following semantic commit conventions.
Open a Pull Request with a detailed description of the changes.