Disclaimer: This project is how I learned rust programming as a hobby. It might have a bad practice code or even not be fully functional at all.
Wrapped pandoc, universal document converter using Rust.
- Clone the repository
git clone git@github.com:Kawaeee/pandog.git
cd pandog/
- Run
pandog
development server
cargo run
- Build
pandog
executable binary
cargo build --release
- Serve Docker container as local API endpoint
# Directly build and run
docker build -t pandog-api-image .
docker run --rm --name=pandog-api-container -p 0.0.0.0:8080:7878 pandog-api-image
# Serve with docker compose
docker-compose build
docker-compose up
- Call a conversion API using
curl
or Postman
curl -X POST -F "input_file=@/path/to/input/file.md" -F "input_format=markdown" -F "output_format=html" http://localhost:8080/convert
- We only support partial pandoc conversion. For now, it is not supported as a binary file output as a response.
I/O | html | ipynb | latex | markdown | plain |
---|---|---|---|---|---|
csv | x | x | x | x | x |
html | x | x | x | x | |
ipynb | x | x | x | x | |
latex | x | x | x | x | |
markdown | x | x | x | x | |
tsv | x | x | x | x | x |
For all fully conversion support, try pandoc playground!