Software

Texy – configurable lightweight markup processor

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
MarkdownMarkup language and Text-to-HTML conversion tool
MultiMarkdownBased on Markdown with additional features
GitHub Flavored MarkdownFor user content on GitHub.com and GitHub Enterprise
Markdown ExtraLightweight markup language based on Markdown
AsciiDocPresentable text document format for writing articles
TextileBilled as a "humane web text generator"
TexyText-to-XHTML formatter and converter library
TomeMarkup Language and Tool Suite for Authors
reStructuredTextMarkup Syntax and Parser Component of Docutils
HamlTemplating engine for HTML
JsonMLMap between XML and JSON
TOMLTom’s Obvious Minimal Language
DjotLight markup language inspired by CommonMark
Org-modePlain text markup for notes, documents, and workflows

Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted