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

some math markdown render error #68

Open
2 tasks done
Dung-2000 opened this issue Dec 13, 2024 · 1 comment
Open
2 tasks done

some math markdown render error #68

Dung-2000 opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Dung-2000
Copy link

Requirements

  • I have searched the issues of this repository and believe that this is not a duplicate
  • I have confirmed this bug exists on the latest version of the app

Platform

Android

Description

I was asking some math and algorithm question to ollama.The output include math symbol cannot render correct

Steps to reproduce

e.g:

  1. ask ollama: "what's omega used for NTT and the different between DFT"
  2. ollama output still show \omega not ω

should I change the font or the problem is my phone only?

Expected behavior

ω

Actual behavior

\omega

Screenshots or additional context

Screenshot_20241213_094334

@Dung-2000 Dung-2000 added the bug Something isn't working label Dec 13, 2024
@Dung-2000
Copy link
Author

I try to view the code and noticed that the rendering issue seems to be due to the lack of support for math-related LaTeX/Markdown libraries.

In main.dart, the project currently imports and uses only flutter_markdown and markdown. To properly render math expressions (e.g., \omega), might consider adding a library like flutter_math_fork or flutter_tex.

I am not familar with dart and Android app, but I will try to set up development environment on my Linux machine and maybe try to test those lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant