Learning with Texts - Fork  2.10.0-fork
Learn foreign languages with texts
Namespaces | Functions
markdown_converter.php File Reference

Simple Mardown to HTML utility file. More...

Namespaces

 Lwt_Documentation
 

Functions

 markdown_converter ($file_path)
 
 markdown_integration ($file_path)
 

Detailed Description

Simple Mardown to HTML utility file.

PHP version 8.1

Function Documentation

◆ markdown_converter()

markdown_converter (   $file_path)

Convert a markdown file to HTML and return the result.

Parameters
string$file_pathFull path for the file to use, including extension.
Returns
string An HTML-formatted string

◆ markdown_integration()

markdown_integration (   $file_path)

Prepapre the integration of a Markdown file into info.html.

Headers are incremented by one level. File name become an ID.

Parameters
string$file_pathFull path for the file to use, including extension (should be ".md")