Skip to content

cadars/portable-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get a single HTML document from a collection of Markdown files.
Demo: https://cadars.github.io/portable-php/

Requirements: PHP

  1. Write posts in content/
  2. Open http://example.com/portable.php in your browser
  3. 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 and id 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.