Skip to content

cadars/portable-php

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
img
 
 
 
 
 
 
 
 
 
 
 
 

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.