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

1 2

  /external/markdown/markdown/extensions/
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...]
imagelinks.py 21 import re, markdown namespace
30 class ImageLinksExtension(markdown.Extension):
37 class ImageLinkPreprocessor(markdown.preprocessors.Preprocessor):
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...]
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. """
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...]
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. """
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...]
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(
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):
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...]
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...]
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...]
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...]
  /external/markdown/markdown/
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.
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...]
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)
html4.py 0 # markdown/html4.py
40 import markdown namespace
41 ElementTree = markdown.etree.ElementTree
42 QName = markdown.etree.QName
43 Comment = markdown.etree.Comment
44 PI = markdown.etree.PI
45 ProcessingInstruction = markdown.etree.ProcessingInstruction
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...]
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...]
__init__.py 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.or
568 def markdown(text, function
    [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)
  /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...]
test-markdown.py 9 logging.getLogger('MARKDOWN').addHandler(logging.StreamHandler())
10 import markdown namespace
190 self.md = markdown.Markdown(extensions=extensions, safe_mode = safe_mode, output_format=output_format)
317 tester.test_directory("tests/markdown-test", measure_time=True)

Completed in 186 milliseconds

1 2