Lines Matching refs:Markdown
2 Python Markdown
5 Python Markdown converts Markdown to HTML and can be used as a library or
10 import markdown
11 md = Markdown()
16 markdown source.txt > destination.html
18 Run "markdown --help" to see more options.
22 See <http://www.freewisdom.org/projects/python-markdown/> for more
24 Python Markdown. Read that before you try modifying this file.
32 Contact: markdown@freewisdom.org
34 Copyright 2007, 2008 The Python Markdown Project (v. 1.7 and later)
105 logger = logging.getLogger('MARKDOWN')
132 """ A Markdown Exception. """
137 """ A Markdown Warning. """
145 Markdown processing takes place in four steps:
157 Those steps are put together by the Markdown() class.
170 # Extensions should use "markdown.etree" instead of "etree" (or do `from
171 # markdown import etree`). Do not import it by yourself.
179 class Markdown:
180 """Convert Markdown to HTML."""
188 Creates a new Markdown instance.
194 If they are a subclass of markdown.Extension, they will be used
318 Register extensions with this instance of Markdown.
323 be strings or objects. See the docstring on Markdown.
336 message(ERROR, 'Extension "%s.%s" must be of type: "markdown.Extension".' \
363 Convert markdown to serialized XHTML or HTML.
377 message(CRITICAL, 'UnicodeDecodeError: Markdown only accepts unicode or ascii input.')
421 """Converts a markdown file and returns the HTML as a unicode string.
424 passes the file content to markdown, and outputs the html to either
429 takes place in Python-Markdown. (All other code is unicode-in /
493 Add the various proccesors and patterns to the Markdown Instance.
499 * md: The Markdown instance.
501 * md_globals: Global variables in the markdown module namespace.
526 ext_module = 'markdown.extensions'
531 try: # New style (markdown.extensons.<extension>)
564 Those are the two functions we really mean to export: markdown() and
568 def markdown(text,
572 """Convert a markdown string to HTML and return HTML as a unicode string.
574 This is a shortcut function for `Markdown` class to cover the most
575 basic use case. It initializes an instance of Markdown, loads the
580 * text: Markdown formatted text as Unicode or ASCII string.
595 md = Markdown(extensions=load_extensions(extensions),
607 """Read markdown code from a file and write it to a file or a stream."""
608 md = Markdown(extensions=load_extensions(extensions),