This console application converts Markdown files into HTML fragments. The generated HTML markup can be output to standard output (stdout) or written to an output file if provided with the --out
argument. Additionally, the application performs checks for common Markdown errors, such as nested or unbalanced markup tags. If it encounters incorrect Markdown due to nesting issues or unbalanced tags, it will output an error to the standard error (stderr) and terminate with a non-zero exit code.
NOTE: You need to have Java installed on your system to run this application. Visit Java's official website to download and install Java.
- Clone the repository from GitHub:
git clone https://github.com/Yana-Koroliuk/Methodologies-lab-1.git
cd Methodologies-lab-1
- Compile the Java files:
javac src/main/java/com/koroliuk/app/*.java
- Run the compiled Main class:
NOTE: If you omit the --out argument, the output will be directed to standard output (stdout).
java -cp src/main/java com.koroliuk.app.Main /path/to/markdownfile.txt --out /path/to/output.html