Get a single HTML document from a collection of 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
Extra: generate a basic RSS feed with portable-feed.php.
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
loading="lazy"
to images, figure and figcaption elements, and more. Can be used for syntax highlighting.