Skip to content

Commit

Permalink
fix content type and renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofstetter Benjamin (extern) committed Mar 28, 2024
1 parent 64af60c commit f069724
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extension/notebook/sparql-notebook-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ export class SparqlNotebookController {
}

private _writeJson(jsonResult: any): NotebookCellOutputItem {
return NotebookCellOutputItem.text(jsonResult, "text/x-json");
return NotebookCellOutputItem.text(
`\`\`\`json\n${jsonResult}\n\`\`\``,
"text/markdown"
);
}

private _writeError(message: any): NotebookCellOutput {
Expand Down

0 comments on commit f069724

Please sign in to comment.