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

Regex support in inlineMath #4

Open
benoitdr opened this issue Oct 30, 2024 · 0 comments
Open

Regex support in inlineMath #4

benoitdr opened this issue Oct 30, 2024 · 0 comments

Comments

@benoitdr
Copy link

To align docsify-latex behavior on pandoc, it would be useful to support regex in docsify inlineMath option.

From pandoc documentation :
Anything between two $ characters will be treated as TeX math. The opening $ must have a non-space character immediately to its right, while the closing $ must have a non-space character immediately to its left, and must not be followed immediately by a digit. Thus, $20,000 and $30,000 won’t parse as math.

Having regex support in inlineMath options would allow to have the same logic :

window.$docsify = {
  // ...
  latex: {
    inlineMath   : [['<regex here>', <regex here>']]
  }
};
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