This commit is contained in:
Johannes Rieken
2021-05-27 14:55:25 +02:00
parent da1193950a
commit 9ef57b5c21
12 changed files with 58 additions and 159 deletions
@@ -12,7 +12,7 @@ export function activate() {
return {
renderCell: (_id: string, context: { element: HTMLElement, value: string, text(): string }) => {
const rendered = markdownIt.render(context.value || context.text()); // todo@jrieken remove .value-usage
const rendered = markdownIt.render(context.text());
context.element.innerHTML = rendered;
// Insert styles into markdown preview shadow dom so that they are applied