If you need to convert text from one markup format into another, pandoc is your swiss-army knife.
Basically I wrapped Pandoc in a web service.
docker run -p 8080:8080 mrded/pandoc-as-a-service
The server will be available on http://localhost:8080
Pandoc As A Service has a simple to use HTTP API:
POST a text to http://localhost/:format
curl -H "Content-Type: text/markdown" -X POST -d "# hello" http://localhost/html