Foremark is a technology for writing a plain-text document which renders nicely on a web browser.
It does not require a plugin, pre-compilation process, or dedicated viewer software.
Being a plain text file, it can be easily edited by any text editor of your choice. It also works very well with most version control systems.
Foremark automatically loads assets from CDN, but if needed, it can fully operate without an internet connection. Use a self-contained bundle (
foremark.bundle.js) available here.
Created documents can be shared easily as they are self-contained, only need a web browser to display, and adapt to various display devices (e.g., PC, tablet, and paper).
The syntax is based on Markdown with some extensions and easy to learn and use.
Copy the following code, save it as
hello.fm.xhtml, and open it with a web browser.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><pre><![CDATA[ **Title** Welcome to Foremark! ::: .----------. ::: Write --> | Document | --> Web Browser ::: '----------' # Section ## Subsection Content ]]></pre> <!-- Foremark footer --> <script src="https://unpkg.com/foremark/browser/foremark.js" async="async"/></html>
Book Reference Manual