Download the PHP package alto/commonmark-source without Composer
On this page you can find all versions of the php package alto/commonmark-source. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alto/commonmark-source
More information about alto/commonmark-source
Files in alto/commonmark-source
Download alto/commonmark-source
More information about alto/commonmark-source
Files in alto/commonmark-source
Vendor alto
Package commonmark-source
Short Description CommonMark extension that displays source files as highlighted code blocks at @source directives, with title, line numbers, and highlighting.
License MIT
Homepage https://github.com/altophp/commonmark
Package commonmark-source
Short Description CommonMark extension that displays source files as highlighted code blocks at @source directives, with title, line numbers, and highlighting.
License MIT
Homepage https://github.com/altophp/commonmark
Please rate this library. Is it a good library?
Informations about the package commonmark-source
Source Extension
Summary
The flagship of the set. @source directives embed a real file -- not a copy -- into your documentation at parse time, with automatic syntax class detection, precise line-range selection, optional line numbers, and per-line highlighting. Your docs and your source stay in sync by construction.
Installation
composer require
Registration
Usage
Configuration
- Constructor:
new SourceExtension(string $basePath='.', array $allowedExtensions=[], bool $escapeHtml=true, int $maxFileSize=1048576). - Supports extension allowlists and max-size protections.
Minimal Example
Development
This extension is actively developed in the alto/commonmark monorepo.
License
MIT License -- Simon André & Alto
All versions of commonmark-source with dependencies
PHP Build Version
Package Version
The package alto/commonmark-source contains the following files
Loading the files please wait ...