Copyright © 2024 contributors of Mutaforma • Github

Output

File extension

The resulting HTML document will have a default file extension of .html. However, you can customize this by setting the outDocExt property in the configuration file to your preferred file extension.

File name

The resulting HTML document will have a default file name of document. However, you can customize this by setting the outDocFileName property in the configuration file to your preferred file name.

Image folder name

By default the images that are contained in the source document will be saved in a folder named images. However, you can customize this by setting the outImgFolderName property in the configuration file to your preferred folder name.

HTML entities

By default special characters in the resulting HTML document such as <, > and others, are encoded using named entity references. This encoding is performed using the popular he library .

You can fine-tune the encoding by providing options via the outHtmlEntities.options property in the configuration file. For a list of available options see the he library documentation.

To disable this encoding alltogether, set the outHtmlEntities.enabled property in the configuration file to false.

Pretty print

By default the source code of the resulting HTML document is pretty printed. Mutaforma uses the popular js beautify library to perform this operation.

You can fine-tune the pretty-printing by providing options via the outPrettyPrint.options property in your configuration file. For a list of available options see the js beautify documentation.

To disable the pretty-printing alltogether, set the outPrettyPrint.enabled property in the configuration file to false.

Removing empty paragraphs

By default empty paragraphs are removed. To preserve them, set the outRemoveEmptyParas property in the configuration file to false.