MDtoGIFTconverter is a Python application that converts Markdown files containing multiple-choice questions into the GIFT format commonly used in educational platforms and assessment tools. This tool automates the process of converting questions written in Markdown syntax into a format compatible with various e-learning systems.
- Converts Markdown files (.md) containing multiple-choice questions into GIFT format (.gift).
- Preserves the structure of questions, including question numbers and options.
- Handles special characters such as
<,>,{,}, etc., by escaping them appropriately. - Supports batch conversion of multiple Markdown files within a directory.
- Simple to use with command-line interface.
- Clone this repository to your local machine:
git clone https://github.com/your_username/MDtoGIFTconverter.git
- Navigate to the project directory:
cd MDtoGIFTconverter
- Ensure you have Python installed on your system.
- Place your Markdown files containing multiple-choice questions in the same directory as the
main.pyfile. - Run the
main.pyscript:python main.py
- The converted GIFT files will be generated in the same directory.
Suppose you have a Markdown file named questions.md with the following content:
#### Q1. What is the capital of France?
- [x] Paris
- [ ] Rome
- [ ] Berlin
#### Q2. Which planet is known as the Red Planet?
- [x] Mars
- [ ] Venus
- [ ] Jupiter
Running the MDtoGIFTconverter on this file will generate a GIFT file named `questions.gift` with the following content:
```plaintext
What is the capital of France?{ =Paris ~Rome ~Berlin }
Which planet is known as the Red Planet?{ =Mars ~Venus ~Jupiter }```Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License