This demonstration presents the capability of embedding multimedia files and images directly into the HTML document generated by the MarkCharm compiler. All local media is transparently converted into Base64 Data URIs, enabling the distribution of a single, fully self-contained and auditable .html file.
As demonstrated in the following data:tions, direct cross-references can be made to fig. 3.1, fig. 3.2, audio 4.1, video 5.1, and object 6.1.
Images continue to be handled by the figure presentation block, supporting optional relative width parameters (width='40%', width='85%'), generating automatic numbering and responsive legibility.
assets/branding/Logo/MarkCharmLogo-transparente.svg).Fig. 3.2 demonstrates the use of high-resolution artwork from the repository collection, scaled to 85% of paragraph length:
assets/images/Escola_de_Atenas_Vaticano.jpg).For audio file inclusion, use the audio block pointing to assets/audio/ with optional dimension adjustments (width='70%'). The native HTML player embeds playback controls.
assets/audio/audio_exemplo.mp3).As seen in audio 4.1, the audio player is rendered with a responsive width of 70% and support for source and observation sub-blocks.
The video block allows embedding video elements (.mp4, .webm, .ogv) stored in assets/videos/, ensuring dynamic presentations remain saved within the report itself.
assets/videos/video_exemplo.mp4).External documents like PDFs or spreadsheets stored in assets/documents/ can be embedded via the object block, displaying the browser's native viewer interface.
assets/documents/documento.pdf).MarkCharm's self-contained architecture ensures complete portability of generated documents without needing external asset bundlers or resource managers.
Usage Requirements & Technical Caveats
\embed_media{true}): Converts images, audio, video, and PDFs into Base64 Data URIs, increasing final HTML file size by ~33%.