This project is a Markdown tool written in C, aimed at providing simple Markdown text processing functions. The main features include parsing Markdown syntax and generating corresponding output formats. When downloading Markdown source files from the internet, images are usually not downloaded together. This tool can download images embedded in the article and update the image relative paths in the article.
- Ensure that CMake and GCC compiler are installed.
- Download or clone this project locally.
- Create a build directory in the project root directory:
mkdir build cd build - Configure the project using CMake:
cmake ..
- Compile the project:
make
After compilation, you can use the generated executable mdTool to process Markdown files. The usage is as follows:
./mdTool <input_file.md> <output_file>This will convert input_file.md to the specified output_file format.