Skip to content

justvamp/md2habr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This class allows you to convert an article in markdown syntax right to correct habrahabr article that is ready to publish.

Usage example:

    $mdFilePath   = __DIR__ . '/article.md';
    $habrFilePath = __DIR__ . '/habr_article.html';

    $mdText = file_get_contents($mdFilePath);
    $conv = new MarkdownToHabrahabrConverter;
    $habrText = $conv->convert($mdText);
    file_put_contents($habrFilePath, $habrText);

About

Markdown to habrababr converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages