This commit is contained in:
Zsolt Viczian
2022-04-30 17:47:08 +02:00
parent 26e12e8cec
commit f0f65fb9a3
6 changed files with 22 additions and 12 deletions

View File

@@ -391,7 +391,8 @@ const convertMarkdownToSVG = async (
): Promise<DataURL> => {
//1.
//get the markdown text
let text = (await getTransclusion(linkParts, plugin.app, file)).contents;
const transclusion = await getTransclusion(linkParts, plugin.app, file);
let text = (transclusion.leadingHashes??"") + transclusion.contents;
if (text === "") {
text =
"# Empty markdown file\nCTRL+Click here to open the file for editing in the current active pane, or CTRL+SHIFT+Click to open it in an adjacent pane.";