rah / php-textile-cli
CLI for converting Textile markup to HTML
Fund package maintenance!
Liberapay
Requires
- php: ^8.1
- netcarver/textile: ^4.1.3
- php-di/php-di: ^5.0 || ^6.0 || ^7.0
- symfony/console: ^5.4 || ^6.4.6 || ^7.2
Requires (Dev)
- phpstan/phpstan: ^1.12.11
- phpunit/phpunit: ^9.5.20
- psy/psysh: ^0.12.4
- squizlabs/php_codesniffer: 3.*
README
CLI application for parsing Textile markup using PHP-Textile library, written in PHP. Accepts Textile markup input and converts it into well-formed HTML.
Install
Using Composer:
$ composer require rah/php-textile-cli
Or download a textile.zip from the releases. The ZIP contains a packaged textile.phar, man pages and shell completion definitions for bash, fish and zsh.
Usage
$ textile [ [-t|--document-type <type>] [-d|--document-root-directory <directory>] [-l|--lite] [-i|--no-images] [-L|--link-relationship <rel>] [-r|--restricted] [-U|--raw-blocks] [-A|--align-classes] [-a|--no-align-classes] [-b|--no-block-tags] [-w|--no-line-wrap] [-p|--image-prefix <url>] [-P|--link-prefix <url>] [-z|--no-dimensions] [-o|--output <file>] ] [--] [<file>]
Examples:
$ echo "h1. Textile markup" | vendor/bin/textile $ vendor/bin/textile -o path/to/README.html path/to/README.textile $ vendor/bin/textile --help
Development
See CONTRIBUTING.md.