2017 © Pedro Peláez
 

library commonmark-sup-sub-extensions

A sup/sub extension for CommonMark PHP implementation

image

ows/commonmark-sup-sub-extensions

A sup/sub extension for CommonMark PHP implementation

  • Friday, April 13, 2018
  • by jcisio
  • Repository
  • 5 Watchers
  • 2 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 33 % Grown

The README.md

ows/commonmark-sup-sub-extensions

This library adds support of superscript and subscript (<sup> and <sub> HTML tags) to league/commonmark., (*1)

Versions compatibility

  • 2.x is compatible with league/commonmark 1.x (recommended version)
  • 1.x is compatible with league/commonmark 0.17.x and 0.18.x and will no longer be supported

Installation

This project can be installed via [Composer]:, (*2)

``` bash $ composer require ows/commonmark-sup-sub-extensions, (*3)


## Usage ```php use League\CommonMark\Environment; use Ows\CommonMark\SupExtension; use Ows\CommonMark\SubExtension; $environment = Environment::createCommonMarkEnvironment(); $environment->addExtension(new SupExtension()); $environment->addExtension(new SubExtension());

See CommonMark customization., (*4)

Syntax

Code:, (*5)

10^2^
10~2~

Result:, (*6)

10<sup>2</sup>
10<sub>2</sub>

The Versions

13/04 2018

dev-master

9999999-dev https://github.com/ows/commonmark-sup-sub-extensions

A sup/sub extension for CommonMark PHP implementation

  Sources   Download

GPL-2.0-or-later

The Requires

 

parser markdown commonmark

13/04 2018

1.0.0-RC1

1.0.0.0-RC1 https://github.com/ows/commonmark-sup-sub-extensions

A sup/sub extension for CommonMark PHP implementation

  Sources   Download

GPL-2.0-or-later

The Requires

 

parser markdown commonmark