2017 © Pedro Peláez
 

library commonmark

A League CommonMark extension.

image

cipemotion/commonmark

A League CommonMark extension.

  • Monday, April 30, 2018
  • by stayallive
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

CipeMotion CommonMark extension

Inline converter

The inline syntax is meant for using quick markup in text settings like comments where it doesn't make sense to have a full wysiwig editor but you do want to provide some formatting options to the user using markdown syntax., (*1)

Supports the following inline syntax:, (*2)

  • _emphasis_ to <em>emphasis</em>
  • *bold* to <strong>bold</strong>
  • ~deleted~ to <del>deleted</del>
  • `code` to <code>code</code>
  • [link](https://url) to <a href="https://url">link</a>
  • ![link](https://url) to !<a href="https://url">link</a> (images are disabled)
  • newlines to paragraphs
  • stripping of html (can be disabled to allow HTML)

Usage

// When `$allowHtml` is `true` HTML is _not_ removed in the output, default is false
$converter = \CipeMotion\CommonMark\Markdown::getInlineConverter($allowHtml);

$html = $converter->convertToHtml('This is _awesome_!')->getContent();
// or
$html = (string)$converter->convertToHtml('This is _awesome_!');

The Versions

30/04 2018

dev-master

9999999-dev

A League CommonMark extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/04 2018

dev-develop

dev-develop

A League CommonMark extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/04 2018

v1.4.0

1.4.0.0

A League CommonMark extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/09 2016

v1.3.0

1.3.0.0

A League CommonMark extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/08 2016

v1.2.0

1.2.0.0

A League CommonMark extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/08 2016

v1.1.0

1.1.0.0

A League CommonMark extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

20/05 2016

v1.0.1

1.0.1.0

A League CommonMark extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/02 2016

v1.0.0

1.0.0.0

A League CommonMark extension.

  Sources   Download

MIT

The Requires