Skip to content

Commit

Permalink
fix: propagate source to admonition element (close #314)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 authored Jul 5, 2023
1 parent 2b0644e commit f5ec0bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ ${editor.getDoc().getSelection()}
(admonition.injectColor ?? this.data.injectColor
? admonition.color
: null),
collapse
collapse, sourcePath
);
this.renderAdmonitionContent(
admonitionElement,
Expand Down Expand Up @@ -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 ${
Expand Down Expand Up @@ -421,7 +421,7 @@ ${editor.getDoc().getSelection()}
MarkdownRenderer.renderMarkdown(
title,
titleInnerEl,
"",
source ?? "",
new Component()
);
if (
Expand Down

0 comments on commit f5ec0bb

Please sign in to comment.