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

LaTeX math support #469

Open
photino opened this issue Sep 20, 2024 · 3 comments
Open

LaTeX math support #469

photino opened this issue Sep 20, 2024 · 3 comments

Comments

@photino
Copy link

photino commented Sep 20, 2024

Many large language models output markdown content which embeds LaTeX math formulae using \( ... \) and \[ ... \]. Could we consider support them as aliases of $ and $$?

@kivikakk
Copy link
Owner

Hi there!

I'll leave this decision up to @digitalmoksha as the originator of the support for math in Comrak, but I consider the rationale here (adapting Comrak for an LLM) in a very dim light, and would suggest instructing the LLM to use the supported syntax instead.

@photino
Copy link
Author

photino commented Sep 23, 2024

We also use comrak to render markdown files which are provided by users.

@digitalmoksha
Copy link
Collaborator

I kind of agree with not specifically adapting comrak for an LLM. That being said, we've also had requests to use LaTex math delimiters for normal usage in GitLab, it's just never bubbled up on priority. So I'm open to a PR adding that support.

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

3 participants