-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Added markdown formatting to the data input component
- evalite@0.7.4
- evalite@0.7.3
- evalite@0.7.2
- evalite@0.7.1
- evalite@0.7.0
- evalite@0.6.2
- evalite@0.6.1
- evalite@0.6.0
- evalite@0.5.4
- evalite@0.5.3
- evalite@0.5.2
- evalite@0.5.1
- evalite@0.5.0
- evalite@0.4.3
- evalite@0.4.2
- evalite@0.4.0
- evalite@0.3.0
- evalite@0.2.1
- @evalite/core@0.5.0
- @evalite/core@0.4.2
- @evalite/core@0.4.1
- @evalite/core@0.4.0
- @evalite/core@0.3.4
- @evalite/core@0.3.3
- @evalite/core@0.3.2
- @evalite/core@0.3.1
- @evalite/core@0.3.0
- @evalite/core@0.2.1
- @evalite/core@0.2.0
- @evalite/core@0.1.1
1 parent
0895c43
commit a602536
Showing
8 changed files
with
610 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import ReactMarkdown from "react-markdown"; | ||
|
||
export const DisplayInput = (props: { input: unknown }) => { | ||
if (typeof props.input === "string") { | ||
return ( | ||
<ReactMarkdown className="prose prose-sm">{props.input}</ReactMarkdown> | ||
); | ||
} | ||
|
||
return JSON.stringify(props.input, null, 2); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.