Download the PHP package youyiio/beyong-markdown without Composer

On this page you can find all versions of the php package youyiio/beyong-markdown. 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 beyong-markdown

Extension for PHP markdown parse, base on parsedown. (https://github.com/youyiio/beyong-markdown)

Configurable Markdown to HTML converter with Parsedown Extra.

Table of Content

Installation

usage

~~~ .php use beyong\markdown\ParsedownExtraPlugin; use beyong\markdown\ParsedownExtra;

$parser = new ParsedownExtraPlugin();

// settings ... $parser->code_class = 'lang-%s';

echo $parser->text('# Header {.sth}');


Features
--------

### HTML or XHTML

~~~ .php
$parser->element_suffix = '>'; // HTML5

Predefined Abbreviations

~~~ .php $parser->abbreviations = array( 'CSS' => 'Cascading Style Sheet', 'HTML' => 'Hyper Text Markup Language', 'JS' => 'JavaScript' );


### Predefined Links

~~~ .php
$parser->links = array(
    'mecha-cms' => array(
        'url' => 'http://mecha-cms.com',
        'title' => 'Mecha CMS'
    ),
    'test-image' => array(
        'url' => 'http://example.com/favicon.ico',
        'title' => 'Test Image'
    )
);

Automatic rel="nofollow" Attribute on External Links

~~~ .php // custom link attributes $parser->links_attr = array();

// custom external link attributes $parser->links_external_attr = array( 'rel' => 'nofollow', 'target' => '_blank' );

// custom image attributes $parser->images_attr = array( 'alt' => "" );

// custom external image attributes $parser->images_external_attr = array();


### Custom Code Class Format

~~~ .php
$parser->code_class = 'language-%s';

~~~ .php $parser->code_class = function($text) { return trim(str_replace('.', ' ', $text)); };


### Custom Code Text Format

~~~ .php
$parser->code_text = '<span class="my-code">%s</span>';
$parser->code_block_text = '<span class="my-code-block">%s</span>';

~~~ .php $parser->code_text = function($text) { return do_syntax_highlighter($text); };

$parser->code_block_text = function($text) { return do_syntax_highlighter($text); };


### Put `<code>` Attributes on `<pre>` Element

~~~ .php
$parser->code_block_attr_on_parent = true;

Custom Table Class

~~~ .php $parser->table_class = 'table-bordered';


### Custom Table Alignment Class

~~~ .php
$parser->table_align_class = 'text-%s';

Custom Footnote ID Format

~~~ .php $parser->footnote_link_id = 'cite_note:%s';


### Custom Footnote Back ID Format

~~~ .php
$parser->footnote_back_link_id = 'cite_ref:%s-%s';

Custom Footnote Class

~~~ .php $parser->footnote_class = 'footnotes';


### Custom Footnote Link Class

~~~ .php
$parser->footnote_link_class = 'footnote-ref';

Custom Footnote Back Link Class

~~~ .php $parser->footnote_back_link_class = 'footnote-backref';


### Custom Footnote Link Text

~~~ .php
$parser->footnote_link_text = '[%s]';

~~~ .php $parser->footnote_link_text = function($text) { return '[' . $text . ']'; };


### Custom Footnote Back Link Text

~~~ .php
$parser->footnote_back_link_text = '<i class="icon icon-back"></i>';

Advance Attribute Parser

Code Block Class Without language- Prefix

Dot prefix in class name are now becomes optional, custom attributes syntax also acceptable:


All versions of beyong-markdown with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
ext-mbstring Version *
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 youyiio/beyong-markdown contains the following files

Loading the files please wait ....