PHP code example of christianblos / markdown2html
1. Go to this page and download the library: Download christianblos/markdown2html 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/ */
christianblos / markdown2html example snippets
$theme = new Markdown2Html\Theme\DefaultTheme();
$theme->title = 'My Project';
$config = new \Markdown2Html\Config();
$config->src = '/path/to/markdown-files';
$config->dest = '/path/to/destination-folder';
$config->theme = $theme;
return $config;
$src = '/path/to/markdown-files';
$dest = '/path/to/destination-folder';
$theme = new Markdown2Html\Theme\DefaultTheme();
$theme->title = 'My Project';
$builder = new Markdown2Html\Builder();
$builder->build($src, $dest, $theme);
$theme = new Markdown2Html\Theme\DefaultTheme();
// Add additional links to the navigation
$theme->naviLinks = [
'Github' => 'https://github.com/christianblos'
];
// overwrite styles
$theme->additionalCss = 'a#header {background-color:red}';
txt
markdown
|- 00.Installation.md
|- 01.Configuration.md
|- 02.Usage.md
|- 02.Usage
| |- 00.Via-command--line.md
| |- 01.Via-PHP.md
|
|- index.md