Download the PHP package izadori/parsedown-plus without Composer

On this page you can find all versions of the php package izadori/parsedown-plus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package parsedown-plus

��# ParsedownPlus

An Extension for Parsedown/ParsedownExtra.

## Features

1. Auto-generation of table of contents

1. By specifying the table of contents tag in the text, ParsedownPlus inserts an automatically generated table of contents.

2. Support for mathematical expressions in LaTeX format

1. ParsedownPlus recognize $ ... $ or $$ ... $$ as LaTeX-like formulas and do not parse in Markdown text.

2. $ ... $ is inline and $$ ... $$ is block.

3. Recognize file name in fenced code

1. ParsedownPlus recognize lang:file ... and set filename in data-filename attribute of <code> tag.

## Usage

### With composer

When using composer, you move to your project folder and type following command.

`bash

composer require izadori/parsedown-plus

`

Parsedown will be also installed when it is not found. If you use ParsedownExtra, you may install it manually.

`bash

composer require erusev/parsedown-extra

`

You have to require autoload.php to use ParsedownPlus in your project.

`php

requireonce DIR_ . "/vender/autoload.php";

use \Izadori\ParsedownPlus\ParsedownPlus;

$parser = new ParsedownPlus();

$text = <<<EOF

# Equation of Circle

$ x{1}^{2} + x{2}^{2} = 1 $

EOF;

$line = "It's inline text!";

// parses Markdown text

echo $parser->text($text); // prints: <h1>Equation of <em>Circle</em></h1> <p>$ x{1}^{2} + x{2}^{2} = 1 $</p>

// parses inline text

echo $parser->line($line); // prints: It's <strong>inline</strong> text!

`

### Without composer

When not using composer, you download ParsedownPlus in your project [here](https://github.com/Izadori/parsedown-plus/blob/main/parsedown-plus/ParsedownPlus.php).

To use ParsedownPlus, you require Parsedown.php. And you require ParsedownExtra.php if you need. Then, you require ParsedownPlus.php;

`php

requireonce DIR_ . "/Parsedown.php";

requireonce DIR_ . "/ParsedownExtra.php"; // if you need

requireonce DIR_ . "/ParsedownPlus.php";

use /Izadori;

$parser = new ParsedownPlus();

$text = <<<EOF

# Equation of Circle

$ x{1}^{2} + x{2}^{2} = 1 $

EOF;

$line = "It's inline text!";

// parses Markdown text

echo $parser->text($text); // prints: <h1>Equation of <em>Circle</em></h1> <p>$ x{1}^{2} + x{2}^{2} = 1 $</p>

// parses inline text

echo $parser->line($line); // prints: It's <strong>inline</strong> text!

`

### Options

ParsedownPlus has some public variables as its options.

|variable|description|

|:-:|:--|

|$langPrefix|A prefix added class name of language in fenced code.<br>The default value is language- for prism.js.|

|$tocTag|A associative array with two members, 'begin' and 'end'.<br>Give the start and end numbers of the heading tags recognizing as table of contents.|

|$tocIdentTag|Specifies a pseudo-tag for inserting a table of contents in the Markdown text as an array of strings.|

|$tocFormat|Specify the format to include the generated table of contents[^1](#about-automatically-generating-table-of-contentes).<br>%s is given as placeholder of the table of contents. ParsedownPlus uses sprintf() function.

### About automatically generating table of contentes

The table of contents generated by ParsedownPlus is an ordered-list like the following.

`html

<ol>

<li>Heading 1</li>

<li>Heading 2</li>

<ol>

<li>Heading 2.1</li>

<li>Heading 2.2</li>

</ol>

<li>Heading 3</li>

</ol>

`

## About bugs and reports

If you find a bug, please send an [issue](https://github.com/izadori/parsedown-plus/issues/new) on the Github with the nature of the bug and the Markdown text in which it occurred.

## About license

ParsedownPlus is complies with the [MIT license](http://opensource.org/licenses/MIT). Please refer to the [LICENSE](https://github.com/Izadori/parsedown-plus/blob/main/LICENSE) file for details.

## About author

- Izadori

- [Github](https://github.com/izadori/parsedown-plus/)

- [Web site(Japanese only) - Izadori's trial and error](https://izadori.net/)

- [E-mail](mailto:izadori.trial.and.error@gmail.com)

- [Twitter](https://twitter.com/izadori97362)

---

## History

### ParsedownPlus.php

1. 2021.09.02 [ver.1.0.0]

- Publish on Github

2. 2021.09.02 [ver.1.0.1]

- Fixed a bug that prevented ParsedownExtra from working properly.

- Added the function of using prefix of the class of language name in the fenced code.

3. 2021.11.28 [ver.1.0.2]

- Modified to add class="block-math" to <p> tags output in block math formulas.

4. 2025.04.14 [ver.1.0.3]

- Modified to display inline LaTeX-like formulas containing inequality signs correctly.

### This document

1. 2021.09.02

- Added description to match ParsedownPlus ver.1.0.1.

- Publish on Github

2. 2021.09.06

- Modify sample code.


All versions of parsedown-plus with dependencies

PHP Build Version
Package Version
Requires erusev/parsedown Version ^1.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package izadori/parsedown-plus contains the following files

Loading the files please wait ....