I think Org-mode (in Emacs) does something similar to what you want.  Here&#x27;s link to page with add-on function to add drag&#x27;n&#x27;drop images to Org files.  The web page itself is what was exported from Org, although the export could have as easily been to pdf.  There&#x27;s also link on this page to youtube video illustrating things:
<a href="http:&#x2F;&#x2F;kitchingroup.cheme.cmu.edu&#x2F;blog&#x2F;2015&#x2F;07&#x2F;10&#x2F;Drag-images-and-files-onto-org-mode-and-insert-a-link-to-them&#x2F;" rel="nofollow">http:&#x2F;&#x2F;kitchingroup.cheme.cmu.edu&#x2F;blog&#x2F;2015&#x2F;07&#x2F;10&#x2F;Drag-image...</a><p>Org-mode itself uses its own rules for adding Markdown-like formatting, but Org-mode has features that go way beyond Markdown.  Here&#x27;s a fairly simple technical doc with a few images and footnotes:
<a href="http:&#x2F;&#x2F;kieranhealy.org&#x2F;files&#x2F;misc&#x2F;workflow-apps.pdf" rel="nofollow">http:&#x2F;&#x2F;kieranhealy.org&#x2F;files&#x2F;misc&#x2F;workflow-apps.pdf</a><p>and here&#x27;s the org file and images that you were used to author that document and export it to pdf:
<a href="https:&#x2F;&#x2F;github.com&#x2F;kjhealy&#x2F;workflow-paper" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kjhealy&#x2F;workflow-paper</a>