Skip navigation
We’re exploring ways to improve how Markdown is rendered in our components during streaming.
0:00 / 1:13

We’re exploring ways to improve how Markdown is rendered in our components during streaming.

Marc Bouchenoire

@marcbouchenoire1.9K followers

Visit on X
902 likesDownloadOriginal post

89,142 views

We’re exploring ways to improve how Markdown is rendered in our components during streaming. • Complete partial syntax when possible (bold, links, table headers, …) • Buffer incomplete elements (partial images, broken emojis, …)

25 Comments

Comments from the original post on X (Twitter)

  • Marc Bouchenoire's profile picture

    @marcbouchenoire

    This post from @mattpocockuk gives a great overview of the issues with Markdown streaming.

    27 likes

  • Marc Bouchenoire's profile picture

    @marcbouchenoire

    <AiChat /> from @liveblocks will have this out-of-the-box, but we’ll also look into releasing it as a standalone package. 👀

    42 likes

  • Ilias's profile picture

    @ilias_yahia

    we had a similar issue. solved by using a custom render using markdoc it also allowed us to stream stream component while showing a loading/fallback

    10 likes

  • Michael's profile picture

    @michael_chomsky

    lmaoooo this was literally a cursor interview question

    10 likes

  • Matt Pocock's profile picture

    @mattpocockuk

    Markdown tables is also pretty gnarly

    10 likes

  • Marc Bouchenoire's profile picture

    @marcbouchenoire

    Yep, we’ve started with how they’re parsed but their actual layout is still on the list

    7 likes

  • swaraj's profile picture

    @swarajb

    You auto-add the ending symbols?

    4 likes

  • Brandon McConnell's profile picture

    @branmcconnell

    this is SO much better

    2 likes

  • Kid Charlemagne's profile picture

    @tickinterstate

    Markdown has become the de-facto language of LLMs but that’s more something we stumbled upon. What if you ditched markdown completely and switched to something like Typst instead? This could potentially alleviate a lot of markdown’s missing features *and* make things simpler.

    2 likes

  • Chris Nicholas's profile picture

    @ctnicholasdev

    Amazing! Didn't realise you were working on this 👏 so good.

    1 like

  • Shubham Arora's profile picture

    @shubham_arora_0

    is the rendering speed the same?

    1 like

  • Gil's profile picture

    @gilgNYC

    Nice job

    1 like

  • Rafael Soh's profile picture

    @rafsoh

    its in the small things... 🫡

    1 like

  • Nico Albanese's profile picture

    @nicoalbanese10

    Incredible

    1 like

  • facundo 🆃's profile picture

    @facundotech

    Great approach 👏

  • gui dávid's profile picture

    @human_named_gui

    i fuck with that a lot

  • Johannes Schmitt's profile picture

    @JohSch314

    Looks great! Does it also handle LaTeX syntax for mathematical formulas?

  • Cory Chainsman's profile picture

    @corychainsman

    This reminds me of optimistic rendering between front- and back-ends. Neat!

  • Pavitra Golchha's profile picture

    @PavitraGolchha

    Smooth 😍

  • Zach Sents's profile picture

    @ZachSents

    Looks great