From f5ec0bbe172f57a9bdf0ea78313b53e37ba66cb7 Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Wed, 5 Jul 2023 10:27:00 -0400 Subject: [PATCH] fix: propagate source to admonition element (close #314) --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 1c1ae13..878bb28 100644 --- a/src/main.ts +++ b/src/main.ts @@ -328,7 +328,7 @@ ${editor.getDoc().getSelection()} (admonition.injectColor ?? this.data.injectColor ? admonition.color : null), - collapse + collapse, sourcePath ); this.renderAdmonitionContent( admonitionElement, @@ -385,7 +385,7 @@ ${editor.getDoc().getSelection()} title: string, icon: AdmonitionIconDefinition, color?: string, - collapse?: string + collapse?: string, source?: string ): HTMLElement { const admonition = createDiv({ cls: `callout admonition admonition-${type} admonition-plugin ${ @@ -421,7 +421,7 @@ ${editor.getDoc().getSelection()} MarkdownRenderer.renderMarkdown( title, titleInnerEl, - "", + source ?? "", new Component() ); if (