kraenzle-ritter/markdown-to-ead

Convert Markdown to EAD (Encoding Archival Description)

v0.0.6 2023-02-07 08:07 UTC

This package is auto-updated.

Last update: 2024-10-22 12:37:28 UTC


README

Latest Version on Packagist Total Downloads Tests

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.