Skip to content

andrewlin12/markdown2png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Overview

This project attempts to render John Gruber's markdown format to PNG (or other image formats). The markdown syntax lives here.

Currently, it uses Python's PIL image library to render the results and python-markdown to parse markdown.

NOTE: This has only been tested on Python 2.6 so far...


Supported Elements

  • Block Elements
    • paragraph
    • headers
    • blockquote
    • lists
    • code block
    • hr
  • Inline Elements
    • anchor
    • emphasis
    • code

Getting Started

easy_install PIL
easy_install Markdown

cd src
python convert.py <markdown_filename> [output_filename] [width]

Tests

  1. Item 1
  2. Item 2 - This is a test of a longer string in a list. Hopefuly this wraps around properly.
  3. Item 3
  4. Item 4
    1. Subitem 1
    2. Subitem 2
  5. Item 5

About

Render markdown to PNG (or other formats)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages