Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 14, 2024 via composer

erusev/parsedown v2.0.0-beta-1

Parser for Markdown.
Package summary
Share
0
issues
1
license
1
MIT
Package created
10 Jul 2013
Version published
21 May 2022
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
erusev/parsedown@v2.0.0-beta-1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of erusev/parsedown 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does erusev/parsedown do?

The erusev/parsedown is a highly effective parser for Markdown in PHP. It's renowned for its speed and extensibility, as well as its ability to function without any dependencies. Moreover, the package is fully compatible with GitHub flavored Markdown and can work in PHP 5.5 to 7.3. It conveniently comes in a single file and has a Markdown Extra extension available.

How do you use erusev/parsedown?

To put erusev/parsedown to use, the first step is to install the composer package by running the command composer require erusev/parsedown. Alternatively, you can download the latest release and include Parsedown.php. Once successfully installed, you can easily parse Markdown text as shown in the examples below:

$Parsedown = new Parsedown();
echo $Parsedown->text('Hello _Parsedown_!'); // prints: <p>Hello <em>Parsedown</em>!</p>

And if you wish to parse inline markdown only:

echo $Parsedown->line('Hello _Parsedown_!'); // prints: Hello <em>Parsedown</em>!

For dealing with untrusted user-input, Parsedown provides a safe mode:

$Parsedown->setSafeMode(true);

And to escape HTML in trusted input, use:

$Parsedown->setMarkupEscaped(true);

Where are the erusev/parsedown docs?

The comprehensive documentation for erusev/parsedown can be found on its GitHub page (https://github.com/erusev/parsedown). For more usage examples, you can visit the wiki section on the GitHub page or view their video tutorial as linked in the readme file.