Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    markdown2 1.4.2

    Download button

    No screenshots available
    Downloads: 443  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Trent Mick | More programs
    MIT/X Consortium Lic... / FREE
    April 30th, 2012, 00:15 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    markdown2 description

    A fast and complete Python implementaion of Markdown

    Markdown is a light text markup format and a processor to convert that to HTML. The originator describes it as follows:

    Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

     -- http://daringfireball.net/projects/markdown/

    markdown2 provides a converter written in Python that closely matches the behaviour of the original Perl-implemented Markdown.pl. There is another Python markdown.py (see link at right), but markdown2.py is faster (see PerformanceNotes) and, to my knowledge, more correct (see TestingNotes).
    Basic Python Module Usage

    >>> import markdown2
    >>> markdown2.markdown("*boo!*") # or use `html = markdown_path(PATH)`
    u'< p >< em >boo!< /em >< /p >
    '

    >>> markdowner = Markdown()
    >>> markdowner.convert("*boo!*")
    u'< p >< em >boo!< /em >< /p >
    '
    >>> markdowner.convert("**boom!**")
    u'< p >< strong >boom!< /strong >< /p >
    '


    Basic Command-Line Usage

    $ cat foo.txt
    *boo!*
    $ python markdown2.py foo.txt
    < p >< em >boo!< /em >< /p >
    $ python markdown2.py -h
    ...detailed command-line usage...


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    text to HTML | text converter | Python library | text | HTML | converter



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM