{"repo":"fastvolt/markdown","free":true,"listed":false,"github":"https://github.com/fastvolt/markdown","clone":"git clone https://github.com/fastvolt/markdown.git","description":"A Fast, Simple and Straight-forward Markdown Parser and Markdown to HTML Converter for PHP.","language":"PHP","stars":63,"topics":["markdown","markdown-parser","markdown-to-html","php","php-markdown","php-markdown-parser","markdown-converter","markdown-it"],"license":null,"category":"productivity","readme_excerpt":"Markdown Parser for PHP A fast, simple, and straightforward Markdown to HTML converter for PHP. 🚀 Installation 📦 Basic Usage Output: 📄 Convert Markdown File to Raw HTML sample.md: index.php: Output: 📝 Convert Markdown File to An HTML File blogPost.md: index.php: Convert Directory to HTML Directory Structure This compiles all .md files in a source directory into a mirrored structure of .html files in an output directory. Single Point Execution This is the universal executor that can operate in three different modes using the MarkdownEnum enum and run method. Interface MarkdownEnum Interface Usage Examples Using The MarkdownEnum::TO HTML Enum This is an alternative way to call getHtml() . Using The MarkdownEnum::TO HTML FILE Enum This is an alternative way to call saveToHtmlFile() . Using The MarkdownEnum::TO HTML DIRECTORY Enum This is the only method that uses setSourceDirectory() . It crawls the source directory, converts all .md files, and saves them (preserving the folder structure) to the output directory. 🔒 Sanitizing HTML Output (XSS Protection) You can sanitize input HTML and prevent cross-site scripting (XSS) attack using the sanitize flag. $sanitize : Set to true (default) to escape HTML tags in the Markdown. Set to false only if you completely trust the source of your Markdown and need raw HTML to be rendered. Output: ⚙️ Advanced Use Case Inline Markdown Output: NOTE: Some markdown symbols are not supported with this method Example #1 Combine multiple markdown ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fastvolt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fastvolt/markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}