A Converter written in PHP to convert .md Files from Obsidian to .epub and sending it to your Kindle. It is used as Backend for the Plugin https://github.com/SimeonLukas/obsidian-kindle-export.
Just provide the Author & Mailadress.
(Test the Backend on: https://md2epub.staneks.de/)
https://github.com/PHPMailer/PHPMailer
https://github.com/luizomf/php-epub-creator
https://github.com/erusev/parsedown
https://github.com/erusev/parsedown-extra
Host the Files on your Server, and let the Plugin obsidian-kindle-export point to it.
(See Settings for the Plugin and do not forget the http:// Prefix)
https://hub.docker.com/r/simeonstanek/md2epub
Docker Image:
docker pull simeonstanek/md2epub
Docker-Compose:
services:
server:
image: simeonstanek/md2epub:latest
restart: always
ports:
- 1234:80
- PHP 8.x
https://www.php.net/downloads - The GD Image Library
https://www.php.net/manual/en/image.installation.php - The PHP-Zip extension.
Install PHP on your System --> https://www.php.net/manual/de/install.php
Win: Include
- extension=openssl
- extension=mbstring
- extension=mysqli
- extension=gd
- extension=zip in your php.ini
Linux: Install it via apt
sudo apt install php8.1-gd
sudo apt install php8.1-zip
Start yout local Server:
$ cd ~/ob2ki-directory
$ php -S localhost:8000