Skip to content

Feature Request: (Server UI) Use remark for markdown rendering #10915

@ngxson

Description

@ngxson

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

We're currently using markdown-it to render markdown content, but it's a bit hacky because:

  • DOM are updated every time new token is added to the generating text (because it relies on setting innerHTML)
  • Copy button need to be added separately

The idea is to replace it with remark, which can render markdown directly into vue components. We can rely on plugins to add back functionalities like copy button, latex, code highlight, etc.

Motivation

N/A

Possible Implementation

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions