Installation
This program doesn't have an installer and follows the unpack-and-run approach:
md2html into a directory of your choice (or clone the repository
there).MD2HTML_HOME environment variable as the absolute path to the md2html directory.Tip
After the program is installed, before further reading, you may go to the Quick start section and try out the program.
This program requires a Python 3 runtime. See here for installation instructions (if required).
The following command may be used to check whether Python is installed:
>python --version
Python 3.8.7
Note
python3 command should be used instead of python.The following Python packages must be installed:
>python -m pip install markdown==3.3.4 markdown-emdash==0.1.0 pymdown-extensions==8.2 jsonschema==3.2.0 chevron==0.14.0
Note
venv) to avoid modifying the system-wide Python installation. venv adaption is not yet
done in this program, bit it is planned.No program-specific installation steps are required, provided that the common steps are fulfilled and the prerequisites are matched.
Java runtime (JRE) 8 or higher. The following command may be used to check whether Java is installed.
>java -version
java version "1.8.0_05"
. . .
Important
Java 8 is the intended version for this program. Java 11 was tried and worked stable, no differences were observed. But with Java 17 the program did not compile due to code incompatibilities. This issue is planned to be investigated.
Here's how the Java version may be installed:
Unlike the Python version, the Java version in this distribution doesn't contain the executable artifacts. They must be built or taken separately.
The release artifact is a file named md2html-bin.jar. Download this file (it must be available
along with the source code) and put it inside the directory
%MD2HTML_HOME%\java\target\ (create this directory if it does not exist). That's it.
This needs Java Development Kit (JDK, not JRE) 8 or higher and Maven.
Important
Please see the notes about Java 17 above.
In a Windows command line terminal execute:
>cd %MD2HTML_HOME%\java
>release.bat
On a Unix-like system execute:
$ cd $MD2HTML_HOME/java
$ ./release
The following must be output as the process ends:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
File md2html-bin.jar must appear in the directory %MD2HTML_HOME%\java\target\.
Important
The tests and the whole build will fail if the variable
MD2HTML_HOME is not set.