rah/php-textile-cli

CLI for converting Textile markup to HTML

0.1.1 2025-07-21 04:25 UTC

This package is auto-updated.

Last update: 2025-07-21 07:41:09 UTC


README

Packagist Coverage Quality Gate Status

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.