1đź‘Ť
It sounds like you’re going to have to modify the ENML to HTML converter to deal with attachments with the mime types you care about. Eg, for images, replace the en-media with an img src=”whateverTheSourceShouldBe.jpg”. Other mime types will be more complicated – eg for pdfs, you could use pdf.js to render the pdf, but that means you’re going to have to attache to an element after the initial render. i.e., spit it out to the DOM with a unique identifier (eg div id=”foo-pdf-somethingelse”) and then attach to it via pdf.js.
👤akhaku
Source:stackexchange.com