Schedariu is a command line utility written in Rust, designed to convert Markdown files into HTML. This utility is perfect for static site generation and other tasks that require bulk conversion of Markdown files into HTML.
- Converts a single Markdown file to HTML (
SingleFile
mode). - Converts a directory of Markdown files to HTML, preserving the original directory structure (
MultipleFiles
mode). - Robust error handling for file access and Markdown parsing errors.
You can use Schedariu via the command line with the following syntax:
Use the single-file
command followed by the input file path, output directory path, and desired output file name:
schedariu.exe single-file <input-file> <output-dir> <output-file-name>
Example:
schedariu.exe single-file /home/user/Documents/example.md /home/user/Output example.html
This will convert the example.md
Markdown file into example.html
in the Output
directory.
Use the multiple-files
command followed by the input directory path and output directory path:
schedariu.exe multiple-files <input-dir> <output-dir>
Example:
schedariu.exe multiple-files /home/user/inputfolder /home/user/outputfolder
This will convert all Markdown files in the MarkdownFiles
directory into HTML, preserving the original directory structure in the Output
directory.
To build Schedariu from source, you will need to have the Rust programming language installed. Once installed, you can build the project using the following command in the project root directory:
cargo build --release
The resulting executable will be placed in the ./target/release/
directory.