kraenzle-ritter / markdown-to-ead
Convert Markdown to EAD (Encoding Archival Description)
v0.0.6
2023-02-07 08:07 UTC
Requires
- league/commonmark: ^2.3
Requires (Dev)
- orchestra/testbench: ^7
- phpunit/phpunit: ^9.5
README
Don´t use this package. It has a very special pupose within anton (anton.ch).
Convert Markdown Snippets to EAD 2002.
Installation
composer require kraenzle-ritter/markdown-to-ead
Usage
use KraenzleRitter\MarkdownToEad\Convert; $markdown = '# Überschrift Paragraph _kursiv_ **fett** - Item 1 - Item 2 Inline [Link](url). '; $converter = new Convert(); $xml = $converter->toEad($markdown); /** <head>Überschrift</head><p>Paragraph <emph render="italic">kursiv</emph> <emph render="bold">fett</emph></p><list><item>Item 1</item><item>Item 2</item></list><p>Inline <extref xlink:href="url">Link</extref>.</p> */
License
MIT. Please see the license file for more information.