Support inline images

This commit is contained in:
Manuel Rüger
2023-04-26 08:02:35 +02:00
parent 2b756daf37
commit fd97ee70f9
9 changed files with 125 additions and 18 deletions

View File

@@ -364,7 +364,7 @@ func processFile(
markdown = mark.DropDocumentLeadingH1(markdown)
}
html, _ := mark.CompileMarkdown(markdown, stdlib, cCtx.String("mermaid-provider"))
html, _ := mark.CompileMarkdown(markdown, stdlib, file, cCtx.String("mermaid-provider"))
fmt.Println(html)
os.Exit(0)
}
@@ -441,7 +441,7 @@ func processFile(
markdown = mark.DropDocumentLeadingH1(markdown)
}
html, inlineAttachments := mark.CompileMarkdown(markdown, stdlib, cCtx.String("mermaid-provider"))
html, inlineAttachments := mark.CompileMarkdown(markdown, stdlib, file, cCtx.String("mermaid-provider"))
// Resolve attachements detected from markdown
_, err = mark.ResolveAttachments(