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

[Dev UI] Markdown Rendering #1547

Open
MichaelDoyle opened this issue Dec 19, 2024 · 2 comments
Open

[Dev UI] Markdown Rendering #1547

MichaelDoyle opened this issue Dec 19, 2024 · 2 comments
Assignees
Labels

Comments

@MichaelDoyle
Copy link
Member

MichaelDoyle commented Dec 19, 2024

If the model response returns markdown (or part of the response as markdown), typically quoted by "triple ticks", we should render it with the appropriate formatting. Some basic examples below.

Requirements

  1. This applies anywhere we have model output.

    1. Model runner
    2. Prompt runner
    3. Flow runner
  2. We should have a way to either view and/or copy the "plain" text.

e.g.) Plain

Markdown:

```
** Here is some markdown **
1. It's formatted really nice
1. And it renders a list
1. So much wow
```

Rendered:

Here is some markdown

  1. It's formatted really nice
  2. And it renders a list
  3. So much wow

e.g.) Code

Markdown:

```js
console.log('hello world')
```

Rendered:

console.log('hello world')
@mjchristy
Copy link
Contributor

What do we think about trace viewer? Is JSON still more appropriate there.

@hugomurillomtz hugomurillomtz self-assigned this Jan 13, 2025
@hugomurillomtz hugomurillomtz moved this to In Progress in Genkit Backlog Jan 13, 2025
@pavelgj
Copy link
Collaborator

pavelgj commented Jan 13, 2025

What do we think about trace viewer? Is JSON still more appropriate there.

looks it's covered by #1553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

4 participants