37 lines
1.2 KiB
Markdown
37 lines
1.2 KiB
Markdown
# csv-to-marp-converter
|
|
|
|
multiple-choice-quiz-csv-to-marp-markdown-slides-converter
|
|
|
|
this tool can convert a csv file into a [Marp](https://marpit.marp.app/) markdown slides, which can subsequently be converted into a pdf file.
|
|
|
|
csv needs to have the following format
|
|
````
|
|
Kategorie 1: Zitate ( Wer hat's gesagt?),,,,
|
|
(1) Probleme sind nur Dorninge Chancen,Jan Böhmermann,Christian Lindner,Elon Musk,Pable Escobar
|
|
````
|
|
Strings surrounded with quotation marks
|
|
|
|
The [marp-cli](https://github.com/marp-team/marp-cli) can be used to convert the md to pdf:
|
|
- Stand alone linux package https://github.com/marp-team/marp-cli/releases
|
|
- docker container https://hub.docker.com/r/marpteam/marp-cli/
|
|
`docker run --rm --init -v $PWD:/home/marp/app/ -e LANG=$LANG marpteam/marp-cli slide-deck.md --pdf`
|
|
|
|
powerpoint export is also possible with --pptx
|
|
|
|
- use config
|
|
- run using cli command when in prod mdoe (inside docker)
|
|
- run using docker when in dev mode
|
|
|
|
Steps:
|
|
1. csv -> marp markdown converter
|
|
2. md -> pdf conversion using mark cli docker image
|
|
|
|
file upload based on
|
|
https://pythonise.com/series/learning-flask/flask-uploading-files
|
|
|
|
python docker wait for container
|
|
|
|
|
|
|
|
|