markdown_converter.php
\file \brief Simple Mardown to HTML utility file.
PHP version 8.1
Tags
Table of Contents
Functions
- markdown_converter() : string
- Convert a markdown file to HTML and return the result.
- markdown_integration() : void
- Prepapre the integration of a Markdown file into info.html.
Functions
markdown_converter()
Convert a markdown file to HTML and return the result.
markdown_converter(string $file_path) : string
Parameters
- $file_path : string
-
Full path for the file to use, including extension.
Return values
string —An HTML-formatted string
markdown_integration()
Prepapre the integration of a Markdown file into info.html.
markdown_integration(string $file_path) : void
Headers are incremented by one level. File name become an ID.
Parameters
- $file_path : string
-
Full path for the file to use, including extension (should be ".md")