Skip to content

impactahead/philomath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Philomath

From markdown files to PDF book:

  • Clickable table of contents
  • Page markers
  • Code blocks with syntax highlighting
  • Support for the following elements: h1, h2, h3, h4, ul, ol, quote, and code_block.

Installation

Install library:

gem install philomath

Usage

Prepare markdown files for your book and make it happen:

chapters = [
  {
    name: 'Introduction',
    file_path: './book/introduction.md'
  },
  {
    name: 'Getting started',
    file_path: './book/getting_started.md'
  }
]

Philomath.render(chapters: chapters, output_path: 'book.pdf')

About

From markdown to complete PDF book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages