Skip to content
/ Md2pdf Public

A simple tool convert markdown file to PDF file written by Haskell.

Notifications You must be signed in to change notification settings

eou/Md2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md2pdf

Description

md2pdf is a simple tool convert markdown file to PDF file written by Haskell.

Usage

Please install HPDF and filemanip to run this program. Try cabal install HPDF and cabal install filemanip.

Then You can run runghc Main.hs ./Sample/Sample1.md ./Sample/Sample2.md in the directory to convert several markdown files.

You can also run runghc Main.hs ./Sample in the directory to convert all markdown files to PDF files in Sample subdirectory.

All PDF files in this project are the outputs of this tool.

Feature

Since HPDF is an incomplete PDF package, this md2pdf tool can only convert some basic markdown format very roughly:

  • Headings (from Heading 1 (biggest) to Heading 6 (smallest));
  • Italic text;
  • Emphasis text;
  • Inline Code;
  • Code;
  • Quote;
  • Hyperlink;
  • Unordered list;

Contribution

Author: Harry

About

A simple tool convert markdown file to PDF file written by Haskell.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published