2017 © Pedro Peláez
 

library commonmark-linkify

Turn plaintext URLs into click-able links

image

jonnybarnes/commonmark-linkify

Turn plaintext URLs into click-able links

  • Thursday, January 11, 2018
  • by jonnybarnes
  • Repository
  • 1 Watchers
  • 1 Stars
  • 581 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

CommonMark Linkify

This extention to CommonMark turns plain text URLs into clickable links., (*1)

Usage

use League\CommonMark\Converter;
use League\CommonMark\DocParser;
use League\CommonMark\Environment;
use League\CommonMark\HtmlRenderer;
use Jonnybarnes\CommonmarkLinkify\LinkifyExtension;

$environment = Environment::createCommonMarkEnvironment();
$environment->addExtension(new LinkifyExtension());

$converter = new Converter(new DocParser($environment), new HtmlRenderer($environment));

echo $converter->convertToHtml('Some text-only link https://example.org');
// Some text link <a href="https://example.org">example.org</a>

The Versions

11/01 2018

dev-master

9999999-dev https://github.com/jonnybarnes/commonmark-linkify

Turn plaintext URLs into click-able links

  Sources   Download

CC0-1.0

The Requires

 

The Development Requires

extension markdown commonmark

11/01 2018

v0.4

0.4.0.0 https://github.com/jonnybarnes/commonmark-linkify

Turn plaintext URLs into click-able links

  Sources   Download

CC0-1.0

The Requires

 

The Development Requires

extension markdown commonmark

07/11 2017

v0.3

0.3.0.0 https://github.com/jonnybarnes/commonmark-linkify

Turn plaintext urls into clickable links

  Sources   Download

CC0-1.0

The Requires

 

The Development Requires

markdown commonmark

10/07 2017

v0.2

0.2.0.0 https://github.com/jonnybarnes/commonmark-linkify

Turn plaintext urls into clickable links

  Sources   Download

CC0-1.0

The Requires

 

The Development Requires

markdown commonmark

07/07 2017

v0.1

0.1.0.0 https://github.com/jonnybarnes/commonmark-linkify

Turn plaintext urls into clickable links

  Sources   Download

CC0-1.0

The Requires

 

The Development Requires

markdown commonmark