Texy is a lightweight markup language and document-processing engine for converting human-readable text into structured HTML.
Developed by David Grudl, Texy combines a relatively approachable markup syntax with extensive control over parsing and rendering. It can be used to process ordinary articles, documentation and user-generated content.
Unlike processors built around a fixed syntax, Texy allows individual formatting rules to be enabled, disabled, replaced or extended. Developers can alter the language understood by the parser without replacing the entire document-processing engine.
Texy is particularly notable for its typography facilities. The processor can recognise punctuation and character sequences that should be transformed for publication, including quotation marks, spacing and symbols.
The processing engine constructs an abstract syntax tree representing the document. Custom handlers can inspect or transform this structure before the final HTML is generated. This approach separates document interpretation from output rendering.
Texy also provides controls for handling untrusted text. Its safe mode restricts generated HTML to reduce the risk of unsafe markup entering web applications.
A companion Markdown processor supports CommonMark and GitHub Flavored Markdown. It uses the same document representation and rendering infrastructure, allowing Markdown content to benefit from Texy’s typography and HTML processing.
This is free and open source software.
Key Features
- Headings, paragraphs, lists and block quotations.
- Nested lists and structured tables.
- Images, hyperlinks and automatic link recognition.
- Configurable parsing and formatting rules.
- Custom syntax constructs and rendering handlers.
- Abstract syntax tree processing.
- Typography-aware quotation marks and punctuation.
- Language-sensitive hyphenation.
- Non-breaking spaces and typographic symbol substitutions.
- Email-address handling and obfuscation.
- Safe mode for restricting generated HTML.
- HTML structure correction and sanitisation facilities.
- CommonMark and GitHub Flavored Markdown processing through a companion package.
- Integration with Latte templates.
Website: texy.nette.org
Support:
Developer: David Grudl
License: BSD 3-Clause ‘New’ or ‘Revised’ License or GNU General Public License v2.0
Texy is written in PHP. Learn PHP with our recommended free books and free tutorials.
Related Software
| Lightweight Markup Languages | |
|---|---|
| Markdown | Markup language and Text-to-HTML conversion tool |
| MultiMarkdown | Based on Markdown with additional features |
| GitHub Flavored Markdown | For user content on GitHub.com and GitHub Enterprise |
| Markdown Extra | Lightweight markup language based on Markdown |
| AsciiDoc | Presentable text document format for writing articles |
| Textile | Billed as a "humane web text generator" |
| Texy | Text-to-XHTML formatter and converter library |
| Tome | Markup Language and Tool Suite for Authors |
| reStructuredText | Markup Syntax and Parser Component of Docutils |
| Haml | Templating engine for HTML |
| JsonML | Map between XML and JSON |
| TOML | Tom’s Obvious Minimal Language |
| Djot | Light markup language inspired by CommonMark |
| Org-mode | Plain text markup for notes, documents, and workflows |
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.