PHP code example of neoground / charm-markdown
1. Go to this page and download the library: Download neoground/charm-markdown library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
neoground / charm-markdown example snippets
$filepath = C::Storage()->getDataPath() . DS . 'demo.md';
$doc = C::Markdown()->fromFile($filepath);
$doc = C::Markdown()->fromString('# Hello World');
$arr = C::Markdown()->separateMarkdownFromYaml($content);
C::Markdown()->getYaml($content);
C::Markdown()->getMarkdownContent($content);
C::Markdown()->toHtml($content);