PHPackages                             kraenzle-ritter/markdown-to-tei - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kraenzle-ritter/markdown-to-tei

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

kraenzle-ritter/markdown-to-tei
===============================

Flexible Markdown to TEI XML converter with customizable conventions

v1.1.1(9mo ago)032MITPHPPHP &gt;=8.1CI passing

Since Jul 26Pushed 9mo agoCompare

[ Source](https://github.com/kraenzle-ritter/markdown-to-tei)[ Packagist](https://packagist.org/packages/kraenzle-ritter/markdown-to-tei)[ RSS](/packages/kraenzle-ritter-markdown-to-tei/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Markdown to TEI Converter
=========================

[](#markdown-to-tei-converter)

[![PHP Version](https://camo.githubusercontent.com/7663c9d53dc13cedaf0660a8745a7e77d2dd711257f36aa86ebce12a0600ef42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c75652e737667)](https://php.net/)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![CI](https://github.com/kraenzle-ritter/markdown-to-tei/workflows/CI/badge.svg)](https://github.com/kraenzle-ritter/markdown-to-tei/actions)[![Quality Assurance](https://github.com/kraenzle-ritter/markdown-to-tei/workflows/Quality%20Assurance/badge.svg)](https://github.com/kraenzle-ritter/markdown-to-tei/actions)[![Downloads](https://camo.githubusercontent.com/b94952b6183752c6d80e41683f5351b094dfe70ca24c60aeb182e6c44ec46917/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b7261656e7a6c652d7269747465722f6d61726b646f776e2d746f2d746569)](https://packagist.org/packages/kraenzle-ritter/markdown-to-tei)[![Latest Version](https://camo.githubusercontent.com/2b9a345b199e37547bb1a2b40e86b47fb06d2e1a953f4a46bdf1993853232f0f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b7261656e7a6c652d7269747465722f6d61726b646f776e2d746f2d746569)](https://packagist.org/packages/kraenzle-ritter/markdown-to-tei)[![PHPUnit Tests](https://camo.githubusercontent.com/3072073749e52aa8def311ce0ca4f8ff71c132754beb77c803003ced3c72d848/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d323725323070617373696e672d627269676874677265656e2e737667)](#testing)[![TEI P5](https://camo.githubusercontent.com/628ea1ce32483e8c2b1383ccb7e5d8de24b382d072a3b33df402f31d62d153c4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5445492d5035253230636f6d706c69616e742d6f72616e67652e737667)](https://tei-c.org/)[![Composer](https://camo.githubusercontent.com/b01db849c56d4bcc47c2caa4afc2ea6dba256cd3ccec92eaee1a0532365f2c11/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d72656164792d626c75652e737667)](https://getcomposer.org/)

A flexible PHP-based converter that transforms Markdown into TEI-XML with support for extended conventions and customizable mappings.

Features
--------

[](#features)

- **Markdown to TEI-XML conversion** with full TEI P5 compliance
- **Extended conventions** (e.g., `[]` to ``, `{}` to ``)
- **Flexible configuration system** for custom rules and mappings
- **Configurable TEI metadata** (title, author, language, etc.)
- **TEI P5 standard compliant** output with proper namespaces
- **High performance** processing of large documents
- **Fully tested** with comprehensive PHPUnit test suite

Installation
------------

[](#installation)

```
composer require kraenzle-ritter/markdown-to-tei
```

For development:

```
git clone https://github.com/kraenzle-ritter/markdown-to-tei.git
cd markdown-to-tei
composer install
```

Basic Usage
-----------

[](#basic-usage)

```
