Generate a single-file HTML website from Markdown files.
Demo: https://cadars.github.io/portable-php/
Requirements: PHP
- Write posts in
content/
- Open
http://example.com/portable.php
in your browser - Save as
index.html
Or from the command-line:
php portable.php > index.html
Included dependencies
- Parsedown converts Markdown to HTML.
- ParsedownExtra adds support for footnotes, abbreviations, definition lists, tables,
class
andid
attributes, fenced code blocks, and Markdown inside HTML blocks. - ParsedownExtraPlugin adds the
loading="lazy"
attribute to images, proper figure and figcaption elements, and more. Can be used for code highlighting.