From f0697243c000c551cbe248a116d4a4d01900400f Mon Sep 17 00:00:00 2001 From: "Hofstetter Benjamin (extern)" Date: Thu, 28 Mar 2024 08:03:11 +0100 Subject: [PATCH] fix content type and renderer --- src/extension/notebook/sparql-notebook-controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/extension/notebook/sparql-notebook-controller.ts b/src/extension/notebook/sparql-notebook-controller.ts index b2cd60e..a62d4da 100644 --- a/src/extension/notebook/sparql-notebook-controller.ts +++ b/src/extension/notebook/sparql-notebook-controller.ts @@ -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 {