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

Markdown not always rendered. #508

Closed
haopengsong opened this issue Apr 16, 2024 · 6 comments
Closed

Markdown not always rendered. #508

haopengsong opened this issue Apr 16, 2024 · 6 comments
Assignees
Milestone

Comments

@haopengsong
Copy link

Hello, I know the current markdown works beautifully! But I sometime would encounter non-rendered outputs, for example:
when I wrote prompts 'convert 10N to pounds', I may get the following output:

image

it was outputing a equation to calculate 10N to pounds but it was not rendered properly.

But in some occasion and some luck, it would generate rendered output:
image

it seems like the renderring happens a bit random.

Is there a way to enforce the renderring of Markdown language? Thanks.

@enricoros
Copy link
Owner

Hi @haopengsong, those are the formulas in markdown. I need to take a look on how to activate inline formulas..right now we support formula blocks (the full line with a formula that you show, and has a special encoding with $$.. formula..$$) but not inline.
Adding to roadmap.

@enricoros
Copy link
Owner

Fixing this. Should have the final solution which supports even the newer OpenAI syntax. Hopefully it's not going to interfere with normal markdown processing, as "[" and "(" could appear in other places.

Note how it improves, before:
image
After:
image

Code will land soon.

@enricoros
Copy link
Owner

enricoros commented Apr 22, 2024

Available on the main branch, will be pushed on the stable code line in the next release. @haopengsong you can test now.

@haopengsong
Copy link
Author

haopengsong commented Apr 23, 2024

Thanks for the fix. let's pull & try.

@enricoros
Copy link
Owner

Thanks for the motivation @haopengsong, I'm very glad you requested, because I finally have a very good rendering I'm proud of and using it myself. I even removed code for this. Love it.

@haopengsong
Copy link
Author

@enricoros just pulled & build, it's working like a charm! Great!

@enricoros enricoros added this to the 1.16.0 milestone May 7, 2024
@enricoros enricoros mentioned this issue May 9, 2024
24 tasks
pAkalpa pushed a commit to pAkalpa/big-AGI that referenced this issue Jun 4, 2024
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

2 participants