2017 © Pedro Peláez
 

library htmlup

HTML from Markdown.

image

adhocore/htmlup

HTML from Markdown.

  • Thursday, July 19, 2018
  • by adhocore
  • Repository
  • 1 Watchers
  • 22 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 19 % Grown

The README.md

adhocore/htmlup

Latest Version Travis Build Scrutinizer CI Codecov branch StyleCI Software License Donate 15 Donate 25 Donate 50 Tweet, (*1)

htmlup is ultra lightweight and uber speedy markdown to html parser written in PHP. Concept - it splits the markdown into lines and parses to markup one by one, finally applies markdown syntaxes on the markup. It supports most of the markdown as in specs., (*2)

installation

Run composer require adhocore/htmlup, (*3)

usage

<?php

use Ahc\HtmlUp;

// require '/path/to/vendor/autoload.php';

// Defaults to 4 space indentation.
echo new Ahc\HtmlUp($markdownText);

// Force 2 space indentation.
echo new HtmlUp($markdownText, 2);

// Also possible:
echo (new Htmlup)->parse($markdownText);

features

nesting

It provides limited support to deep nested elements, supported items are:, (*4)

  • lists inside lists
  • blockquotes inside blockcodes
  • lists inside blockquotes

raw html

you can throw in your raw html but with a blank line at start and end to delimit the block at like so-, (*5)




A
Apple
B
Ball

table

supports GFM table syntax, example:, (*6)

a | b | c
--- |----| ---
1 | 2  |3
 4| 5 | 6

is rendered as:, (*7)

a b c
1 2 3
4 5 6

todo

  • make robust, and provide full support of spec
  • ~~handle markdown table syntax~~
  • markdown extra however, is not planned :(

contributing

  • fork and pull request for patch/fix
  • create issue for breaking bugs and severe markdown spec violation
  • please check the guide

license

© 2014-2018 | Jitendra Adhikari | MIT, (*8)

The Versions

19/07 2018

dev-master

9999999-dev https://github.com/adhocore/htmlup

HTML from Markdown.

  Sources   Download

WTFPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Jitendra Adhikari

markdown htmlup

19/07 2018

dev-develop

dev-develop https://github.com/adhocore/htmlup

HTML from Markdown.

  Sources   Download

WTFPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Jitendra Adhikari

markdown htmlup

19/07 2018

dev-analysis-8AvWW9

dev-analysis-8AvWW9 https://github.com/adhocore/htmlup

HTML from Markdown.

  Sources   Download

WTFPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Jitendra Adhikari

markdown htmlup

19/07 2018

dev-analysis-qg3MyG

dev-analysis-qg3MyG https://github.com/adhocore/htmlup

HTML from Markdown.

  Sources   Download

WTFPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Jitendra Adhikari

markdown htmlup

26/10 2017

v0.0.3

0.0.3.0 https://github.com/adhocore/htmlup

HTML from Markdown.

  Sources   Download

WTFPL

The Requires

  • php >=5.3.0

 

The Development Requires

by Jitendra Adhikari

markdown htmlup

25/10 2017

v0.0.2

0.0.2.0 https://github.com/adhocore/htmlup

HTML from Markdown.

  Sources   Download

WTFPL

The Requires

  • php >=5.3.0

 

The Development Requires

by Jitendra Adhikari

markdown htmlup