Skip to content

Commit

Permalink
Merge pull request #78 from zazuko/fix-json-tables
Browse files Browse the repository at this point in the history
fix content type and renderer
  • Loading branch information
BenjaminHofstetter authored Mar 28, 2024
2 parents 64af60c + f069724 commit 0fa9dbc
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 0fa9dbc

Please sign in to comment.