enricoros/big-AGI

Markdown not always rendered.

Closed this issue · 6 comments

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.

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.

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.

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

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

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.

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