diff --git a/src/ts/util.ts b/src/ts/util.ts index 1b16d57d..5f44c7bd 100644 --- a/src/ts/util.ts +++ b/src/ts/util.ts @@ -573,6 +573,12 @@ export function applyMarkdownToNode(node: Node) { if (markdown !== text) { const span = document.createElement('span'); span.innerHTML = markdown; + + // inherit inline style from the parent node + const parentStyle = (node.parentNode as HTMLElement).style; + for(let i=0;i