crit/markdown

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP markdown abstraction class

1.0 2013-12-20 21:31 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:29:19 UTC


README

This method wraps my preferred libraries for working with markdown content.

Install

Easy install with Composer.

php composer.phar require "crit/markdown": "dev-master"

Usage

<?php
include "vendor/autoload.php";

use Markdown\Markdown;

$html = Markdown::ToHTML("# Title\n\nParagraph 1\n\n- List Element 1\n- List Element 2\n\n");
$markdown = Markdown::FromHTML("<h1>Title</h1><p>Paragraph 1</p><ul><li>List Element 1</li><li>List Element 2</li></ul>");