mdx_smartypantsPython-Markdown extension using smartypants to emit typographically nicer ("curly") quotes, p... | |
Download |
mdx_smartypants Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Jonathan Eunice
- Publisher web site:
- http://bitbucket.org/jeunice/
mdx_smartypants Tags
mdx_smartypants Description
mdx_smartypants is a Markdown extension using smartypants to emit typographically nicer ("curly") quotes, proper ("em" and "en") dashes, etc.Installationpip install mdx_smartypantsFailing that, fall back to the older approach:easy_install mdx_smartypants(You may need to begin these with "sudo " to authorize installation.)Usageimport markdownimport mdx_smartypantstext = """Markdown makes HTML from simple text files. But--it lacks typographic"prettification." That... That'd be sweet. Definitely 7---8 on a '10-pointscale'. Now it has it.Huzzah!"""print markdown.markdown(text, extensions=)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 lackstypographic “prettification.” That… That’d besweet. Definitely 7–8 on a ‘10-point scale’. Now it hasit.< /p >< p >Huzzah!< /p >Product's homepage
mdx_smartypants Related Software