mdx_smartypants

Software Screenshot:
mdx_smartypants
Software Details:
Version: 1.2
Upload Date: 14 Apr 15
Developer: Jonathan Eunice
Distribution Type: Freeware
Downloads: 51

Rating: 4.0/5 (Total Votes: 2)

mdx_smartypants is a Markdown extension using smartypants to emit typographically nicer ("curly") quotes, proper ("em" and "en") dashes, etc.

Installation

pip install mdx_smartypants

Failing that, fall back to the older approach:

easy_install mdx_smartypants

(You may need to begin these with "sudo " to authorize installation.)

Usage

import markdown
import mdx_smartypants

text = """
Markdown makes HTML from simple text files. But--it lacks typographic
"prettification." That... That'd be sweet. Definitely 7---8 on a '10-point
scale'. Now it has it.

Huzzah!
"""


print markdown.markdown(text, extensions=['smartypants'])


This produces nice HTML output, including typographically "pretty" quotes and other punctuation. It also renders HTML entites in their named rather than numeric form, which is easier on the eyes and more readily comprehended:

< p >Markdown makes HTML from simple text files. But—it lacks
typographic “prettification.” That… That’d be
sweet. Definitely 7–8 on a ‘10-point scale’. Now it has
it.< /p >
< p >Huzzah!< /p >

Requirements:

  • Python
  • Markdown

Similar Software

C++ WSDL Parser
C++ WSDL Parser

3 Jun 15

XML Parse Library
XML Parse Library

12 May 15

xml2rfc
xml2rfc

20 Feb 15

hexedit
hexedit

18 Feb 15

Other Software of Developer Jonathan Eunice

namedentities
namedentities

14 Apr 15

Comments to mdx_smartypants

Comments not found
Add Comment
Turn on images!