Download the PHP package cradeq/commonmark-strikethrough-sub-sup-extension without Composer
On this page you can find all versions of the php package cradeq/commonmark-strikethrough-sub-sup-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cradeq/commonmark-strikethrough-sub-sup-extension
More information about cradeq/commonmark-strikethrough-sub-sup-extension
Files in cradeq/commonmark-strikethrough-sub-sup-extension
Package commonmark-strikethrough-sub-sup-extension
Short Description Adds support for strikethrough, subscript and superscript in Markdown (using `
License MIT
Homepage https://github.com/Cradeq/commonmark-strikethrough-sub-sup-extension
Informations about the package commonmark-strikethrough-sub-sup-extension
CommonMark Strikethrough, Sub & Sup Extension
This package adds support for subscript and superscript in Markdown (using <sub> and <sup> HTML tags). This package also duplicates the logic used in the League Strikethrough Extension (which generates <del> tags).
There is no official spec that supports both subscript and strikethrough. As they both typically use the tilde character (~), we follow the extended syntax of Markdown Guide. That means that strikethrough with only one tilde is necessarily NOT supported. Subscript and strikethrough can be nested, similar to how emphasis works (~Subscript ~~Subscript and striked~~~).
Added markdown features
| Name | Markdown | Result |
|---|---|---|
| Superscript | ^Text^ |
<sup>Text</sup> |
| Subscript | ~Text~ |
<sub>Text</sub> |
| Strikethrough | ~~Text~~ |
<del>Text</del> |
Install
This project can be installed via composer:
composer require cradeq/commonmark-strikethrough-sub-sup-extension