Creates an instance of text formatter parser.
path to the file to read and format as HTML.
Content of the file formatted as HTML.
The metadata contiained in the source file as extracted by gray-matter
.
path to the file to read and format as HTML.
Checks if the file exists. If not returns a error. Else parses it. Conversion to HTML is done with Showdown, while Front Matter data extraction is done with gray-matter
.
do
Reads the file with gray-matter
to seaprate the Front Matter data from the actual cotnents of the file.
Analyzes a text only file, including MarkDown files, and parses it to HTML.