PHPackages                             bitandblack/markdown-idml-converter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bitandblack/markdown-idml-converter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bitandblack/markdown-idml-converter
===================================

Convert Markdown into (parts of) Adobe InDesign Markup Language Files (IDML).

2.0.0(5mo ago)26MITPHPPHP &gt;=8.2

Since Jan 19Pushed 4mo agoCompare

[ Source](https://github.com/BitAndBlack/markdown-idml-converter)[ Packagist](https://packagist.org/packages/bitandblack/markdown-idml-converter)[ Docs](https://www.idml.dev/en/markdown-to-idml-converter-php.html)[ Fund](https://www.buymeacoffee.com/tobiaskoengeter)[ RSS](/packages/bitandblack-markdown-idml-converter/feed)WikiDiscussions main Synced today

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

[![PHP from Packagist](https://camo.githubusercontent.com/c5a6449c5efba88c996d09d99b3cc79789f91480a7cd6878fe021da756e2dae8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626974616e64626c61636b2f6d61726b646f776e2d69646d6c2d636f6e766572746572)](http://www.php.net)[![Total Downloads](https://camo.githubusercontent.com/15874acffe705c28407ccf4f1ee061ecca58b35b3e059e041ce7d232e119909c/68747470733a2f2f706f7365722e707567782e6f72672f626974616e64626c61636b2f6d61726b646f776e2d69646d6c2d636f6e7665727465722f646f776e6c6f616473)](https://packagist.org/packages/bitandblack/markdown-idml-converter)[![License](https://camo.githubusercontent.com/19bf59621653498e296cace01f413dfa35b534d270e4fe596357fc2e69adc96a/68747470733a2f2f706f7365722e707567782e6f72672f626974616e64626c61636b2f6d61726b646f776e2d69646d6c2d636f6e7665727465722f6c6963656e7365)](https://packagist.org/packages/bitandblack/markdown-idml-converter)

 [ ![Bit&Black Logo](https://camo.githubusercontent.com/6cd6b1b85b6247964059c5d9420aae54482ebf17afbaf5f08127bc49de5916f4/68747470733a2f2f7777772e626974616e64626c61636b2e636f6d2f6275696c642f696d616765732f426974416e64426c61636b2d4c6f676f2d46756c6c2e706e67) ](https://www.bitandblack.com)

Bit&amp;Black Markdown-IDML-Converter
=====================================

[](#bitblack-markdown-idml-converter)

Convert Markdown into (parts of) Adobe InDesign Markup Language Files (IDML).

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

[](#installation)

This library is written in [PHP](https://www.php.net) and made for the use with [Composer](https://packagist.org/packages/bitandblack/markdown-idml-converter). Be sure to have both of them installed on your system.

As this library requires the [IDML Creator](https://www.idml.dev/en/idml-creator-php.html) — which requires a licence — be sure to get one at first. If not already part of your project, add the Composer credentials. (This is explained for example [here](https://www.idml.dev/en/idml-creator-php/installation.html).)

Add the library then to your project by running `$ composer require bitandblack/markdown-idml-converter`.

Usage
-----

[](#usage)

### Converting Markdown into IDML Formatted Text

[](#converting-markdown-into-idml-formatted-text)

This library can convert a few Markdown formats into Paragraph and Character Styles. It can handle:

- The base "copy" paragraph
- Headlines from hierarchy 1 to 6
- An italic formatting
- A bold formatting

Therefore, the first step is to create an array with the styles, that should be used:

```
