mlx-swift-examples icon indicating copy to clipboard operation
mlx-swift-examples copied to clipboard

Issue #297 - Add markdown rendering to MLX Chat Example

Open JoeJoe1313 opened this issue 7 months ago • 1 comments

Changes done

  • Adopt MarkdownUI
  • Apply markdown only to assistant message
  • Introduce a toggle to choose between plain text and markdown - this is applied both during and after output generation

This addresses #297.

Future improvements

  • Apply markdown to user message (but I find this meaningful only after the prompt can support multiline input)

Testing done

JoeJoe1313 avatar May 02 '25 23:05 JoeJoe1313

@JoeJoe1313 see discussion in #297 -- I think we should go with the approach from #303, but thank you so much for working on this!

davidkoski avatar May 14 '25 21:05 davidkoski