HomeSort by relevance Sort by last modified time
    Searched refs:markdown (Results 1 - 25 of 30) sorted by null

1 2

  /external/markdown/bin/
markdown 3 Python Markdown, the Command Line Script
6 This is the command line script for Python Markdown.
10 markdown source.txt > destination.html
12 Run "markdown --help" to see more options.
14 See markdown/__init__.py for information on using Python Markdown as a module.
22 Contact: markdown@freewisdom.org
24 Copyright 2007, 2008 The Python Markdown Project (v. 1.7 and later)
33 from markdown import COMMAND_LINE_LOGGING_LEVEL
34 from markdown import commandlin
    [all...]
  /external/markdown/markdown/
postprocessors.py 5 Markdown also allows post-processors, which are similar to preprocessors in
12 import markdown namespace
17 self.markdown = markdown_instance
26 Postprocessors must extend markdown.Postprocessor.
45 for i in range(self.markdown.htmlStash.html_counter):
46 html, safe = self.markdown.htmlStash.rawHtmlBlocks[i]
47 if self.markdown.safeMode and not safe:
48 if str(self.markdown.safeMode).lower() == 'escape':
50 elif str(self.markdown.safeMode).lower() == 'remove':
53 html = markdown.HTML_REMOVED_TEX
    [all...]
blockparser.py 2 import markdown namespace
38 """ Parse Markdown blocks into an ElementTree object.
45 self.blockprocessors = markdown.odict.OrderedDict()
49 """ Parse a markdown document into an ElementTree.
59 self.root = markdown.etree.Element(markdown.DOC_TAG)
61 return markdown.etree.ElementTree(self.root)
64 """ Parse a chunk of markdown text and attach to given etree node.
78 """ Process blocks of markdown text and attach to given etree node.
blockprocessors.py 2 CORE MARKDOWN BLOCKPARSER
5 This parser handles basic parsing of Markdown blocks. It doesn't concern itself
11 as they need to alter how markdown blocks are parsed.
16 import markdown namespace
44 if line.startswith(' '*markdown.TAB_LENGTH):
45 newtext.append(line[markdown.TAB_LENGTH:])
56 if lines[i].startswith(' '*markdown.TAB_LENGTH*level):
57 lines[i] = lines[i][markdown.TAB_LENGTH*level:]
116 INDENT_RE = re.compile(r'^(([ ]{%s})+)'% markdown.TAB_LENGTH)
121 return block.startswith(' '*markdown.TAB_LENGTH) and
    [all...]
preprocessors.py 11 import markdown namespace
13 HTML_PLACEHOLDER_PREFIX = markdown.STX+"wzxhzdk:"
14 HTML_PLACEHOLDER = HTML_PLACEHOLDER_PREFIX + "%d" + markdown.ETX
19 self.markdown = markdown_instance
29 Preprocessors must extend markdown.Preprocessor.
138 and markdown.isBlockLevel(left_tag):
142 if not (markdown.isBlockLevel(left_tag) \
154 self.markdown.htmlStash.store(block.strip()))
159 if markdown.isBlockLevel(left_tag) or left_tag == "--" \
165 self.markdown.htmlStash.store(block.strip())
    [all...]
treeprocessors.py 1 import markdown namespace
11 self.markdown = markdown_instance
21 Treeprocessors must extend markdown.Treeprocessor.
40 self.__placeholder_prefix = markdown.INLINE_PLACEHOLDER_PREFIX
41 self.__placeholder_suffix = markdown.ETX
44 self.__placeholder_re = re.compile(markdown.INLINE_PLACEHOLDER % r'([0-9]{4})')
45 self.markdown = md
50 hash = markdown.INLINE_PLACEHOLDER % id
84 * data: A line of Markdown text
90 if not isinstance(data, markdown.AtomicString)
    [all...]
etree_loader.py 2 from markdown import message, CRITICAL
inlinepatterns.py 7 that extend markdown.Pattern. Each pattern object uses a single regular
15 All of python markdown's built-in patterns subclass from Pattern,
29 that we can preempt any markdown patterns by escaping them.
44 import markdown namespace
71 if markdown.SMART_EMPHASIS:
131 # Api for Markdown to pass safe_mode into instance
134 self.markdown = markdown_instance
162 if text == markdown.INLINE_PLACEHOLDER_PREFIX:
177 el = markdown.etree.Element(self.tag)
185 return markdown.etree.Element(self.tag
    [all...]
commandline.py 6 Markdown is called from the command line.
9 import markdown namespace
14 EXECUTABLE_NAME_FOR_USAGE = "python markdown.py"
88 """Run Markdown from the command line."""
93 if logging_level: logging.getLogger('MARKDOWN').setLevel(logging_level)
96 markdown.markdownFromFile(**options)
  /external/markdown/markdown/extensions/
headerid.py 4 HeaderID Extension for Python-Markdown
11 >>> import markdown
13 >>> md = markdown.markdown(text, ['headerid'])
23 >>> md = markdown.markdown(text, ['headerid'])
32 >>> md = markdown.markdown(text, ['headerid(level=3)'])
41 >>> md = markdown.markdown(text, ['headerid(forceid=False)']
68 import markdown namespace
    [all...]
extra.py 3 Python-Markdown Extra Extension
6 A compilation of various Python-Markdown extensions that imitates
7 [PHP Markdown Extra](http://michelf.com/projects/php-markdown/extra/).
12 initiating Markdown. See the documentation for each individual
16 available for import, Markdown will issue a warning and simply continue
20 Python-Markdown that are not included here in Extra. Those extensions
21 are not part of PHP Markdown Extra, and therefore, not part of
22 Python-Markdown Extra. If you really would like Extra to include
26 when you upgrade to any future version of Python-Markdown
30 import markdown namespace
    [all...]
html_tidy.py 4 HTML Tidy Extension for Python-Markdown
7 Runs [HTML Tidy][] on the output of Python-Markdown using the [uTidylib][]
25 * [Markdown 2.0+](http://www.freewisdom.org/projects/python-markdown/)
31 import markdown namespace
34 class TidyExtension(markdown.Extension):
37 # Set defaults to match typical markdown behavior.
46 # Save options to markdown instance
52 class TidyProcessor(markdown.postprocessors.Postprocessor):
58 **self.markdown.tidy_options))
    [all...]
abbr.py 2 Abbreviation Extension for Python-Markdown
5 This extension adds abbreviation handling to Python-Markdown.
9 >>> import markdown
16 >>> markdown.markdown(text, ['abbr'])
26 import markdown, re namespace
27 from markdown import etree
32 class AbbrExtension(markdown.Extension):
33 """ Abbreviation Extension for Python-Markdown. """
40 class AbbrPreprocessor(markdown.preprocessors.Preprocessor)
    [all...]
fenced_code.py 4 Fenced Code Extension for Python Markdown
7 This extension adds Fenced Code Blocks to Python-Markdown.
9 >>> import markdown
17 >>> html = markdown.markdown(text, extensions=['fenced_code'])
23 >>> markdown.markdown(text, extensions=['fenced_code'], safe_mode='replace')
34 >>> markdown.markdown(text, extensions=['fenced_code'])
47 >>> markdown.markdown(text, extensions=['fenced_code']
63 import markdown, re namespace
    [all...]
meta.py 4 Meta Data Extension for Python-Markdown
7 This extension adds Meta Data handling to markdown.
11 >>> import markdown
19 >>> md = markdown.Markdown(['meta'])
25 Make sure text without Meta Data still works (markdown < 1.6b returns a <p>).
28 >>> md = markdown.Markdown(['meta'])
36 Project website: <http://www.freewisdom.org/project/python-markdown/Meta-Data>
37 Contact: markdown@freewisdom.or
43 import markdown, re namespace
    [all...]
def_list.py 3 Definition List Extension for Python-Markdown
6 Added parsing of Definition Lists to Python-Markdown.
22 import markdown, re namespace
23 from markdown import etree
26 class DefListProcessor(markdown.blockprocessors.BlockProcessor):
76 class DefListIndentProcessor(markdown.blockprocessors.ListIndentProcessor):
84 dd = markdown.etree.SubElement(parent, 'dd')
89 class DefListExtension(markdown.Extension):
90 """ Add definition lists to Markdown. """
rss.py 1 import markdown namespace
2 from markdown import etree
4 DEFAULT_URL = "http://www.freewisdom.org/projects/python-markdown/"
6 DEFAULT_TITLE = "Markdown in Python"
7 GENERATOR = "http://www.freewisdom.org/projects/python-markdown/markdown2rss"
44 class RssExtension (markdown.Extension):
61 class RssTreeProcessor(markdown.treeprocessors.Treeprocessor):
105 pholder = self.markdown.htmlStash.store(
imagelinks.py 21 import re, markdown namespace
30 class ImageLinksExtension(markdown.Extension):
37 class ImageLinkPreprocessor(markdown.preprocessors.Preprocessor):
footnotes.py 4 This section adds footnote handling to markdown. It can be used as
5 an example for extending python-markdown with relatively complex
8 module. Not that all markdown classes above are ignorant about
10 then added to the markdown instance at the run time.
26 import re, markdown namespace
27 from markdown import etree
34 class FootnoteExtension(markdown.Extension):
56 """ Add pieces to Markdown. """
77 self.footnotes = markdown.odict.OrderedDict()
147 class FootnotePreprocessor(markdown.preprocessors.Preprocessor)
    [all...]
tables.py 3 Tables Extension for Python-Markdown
6 Added parsing of tables to Python-Markdown.
17 import markdown namespace
18 from markdown import etree
21 class TableProcessor(markdown.blockprocessors.BlockProcessor):
86 class TableExtension(markdown.Extension):
87 """ Add tables to Markdown. """
codehilite.py 4 CodeHilite Extension for Python-Markdown
7 Adds code/syntax highlighting to standard Python-Markdown code blocks.
11 Project website: <http://www.freewisdom.org/project/python-markdown/CodeHilite>
12 Contact: markdown@freewisdom.org
18 * [Markdown 2.0+](http://www.freewisdom.org/projects/python-markdown/)
23 import markdown namespace
28 TAB_LENGTH = markdown.TAB_LENGTH
177 # ------------------ The Markdown Extension -------------------------------
178 class HiliteTreeprocessor(markdown.treeprocessors.Treeprocessor)
    [all...]
wikilinks.py 4 WikiLinks Extension for Python-Markdown
7 Converts [[WikiLinks]] to relative links. Requires Python-Markdown 2.0+
11 >>> import markdown
13 >>> html = markdown.markdown(text, ['wikilinks'])
19 >>> markdown.markdown('[[ foo bar_baz ]]', ['wikilinks'])
21 >>> markdown.markdown('foo [[ ]] bar', ['wikilinks'])
26 >>> markdown.markdown(text,
81 import markdown namespace
    [all...]
toc.py 2 Table of Contents Extension for Python-Markdown
8 * [Markdown 2.0+](http://www.freewisdom.org/projects/python-markdown/)
11 import markdown namespace
12 from markdown import etree
15 class TocTreeprocessor(markdown.treeprocessors.Treeprocessor):
104 class TocExtension(markdown.Extension):
  /external/markdown/
regression-tests.py 3 Python-Markdown Regression Tests
6 Tests of the various APIs with the python markdown lib.
13 import markdown namespace
16 """ Tests basics of the Markdown class. """
19 """ Create instance of Markdown. """
20 self.md = markdown.Markdown()
39 self.parser = markdown.Markdown().parser
43 root = markdown.etree.Element("div"
    [all...]
  /docs/source.android.com/scripts/
build.py 24 # call markdown as a subprocess, and capture the output
25 def markdown(raw_file): function
27 command = 'markdown' + ' ' + extensions + ' ' + raw_file
42 # directory to look in for markdown source files
89 sidebar = markdown(os.path.join(curdir, 'sidebar.md'))
95 sidebar2 = markdown(os.path.join(curdir, 'sidebar2.md'))
101 sidebar3 = markdown(os.path.join(curdir, 'sidebar3.md'))
115 main = markdown(absfilename)

Completed in 115 milliseconds

1 2