javascript - Fully self-contained HTML files with Pandoc -
i have little knowledge in html , javascript, , want know following:
i have master html file contains text, images ... , contains internal references other local html files, put in relative directory. possible make self-contained html file, other files still referenced url links content recorded in master file ?
i had problem using --self-contained
option in pandoc, writes necessary stuff (css stylesheet, ...) html header, while master html document still needs "see" actual local files.
so far, tried iframe
tag, opened, , not simple put in page,like one-line url link. have read answer using html+javascript not sure if compatible pandoc.
anyone can me understand difficulty of such task ?
usually 1 html file referenced 1 url, when follow links , change url navigate new file. somehow package multiple files, example epub file format has been invented (is zipped collection of html files, pandoc can generate it).
other that, use hash links link data in same html file, like:
see <a href="#my-section">section 1</a>. <h1 id="my-section">my section</h1>
you craft javascript , embed in html file. javascript hide sections except 1 in hash of browser (as in myhtmlfile.html#my-section
).
Comments
Post a Comment