Skip to content

Commit

Permalink
fix: Fixes issue where Insert Callout wouldn't insert a > on the fi…
Browse files Browse the repository at this point in the history
…rst line
  • Loading branch information
valentine195 committed Mar 23, 2022
1 parent 23f6f83 commit c276afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ ${editor.getDoc().getSelection()}
}
});
this.addCommand({
id: "insert-admonition",
id: "insert-callout",
name: "Insert Callout",
editorCallback: (editor, view) => {
let suggestor = new InsertAdmonitionModal(this);
Expand Down Expand Up @@ -272,7 +272,7 @@ ${editor.getDoc().getSelection()}
const selection = editor.getDoc().getSelection();
editor.getDoc().replaceSelection(
`> [!${suggestor.type}]${collapse}${title}
${selection.split("\n").join("\n> ")}
> ${selection.split("\n").join("\n> ")}
`
);
};
Expand Down

0 comments on commit c276afe

Please sign in to comment.