Searched defs:markdown (Results 1 - 25 of 28) sorted by relevance

12

/external/markdown/markdown/extensions/
H A Dextra.py7 [PHP Markdown Extra](http://michelf.com/projects/php-markdown/extra/).
30 import markdown namespace
41 class ExtraExtension(markdown.Extension):
H A Dhtml_tidy.py25 * [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))
H A Dimagelinks.py21 import re, markdown namespace
30 class ImageLinksExtension(markdown.Extension):
37 class ImageLinkPreprocessor(markdown.preprocessors.Preprocessor):
H A Dmeta.py7 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.org
43 import markdown, re namespace
49 class MetaExtension (markdown.Extension):
58 class MetaPreprocessor(markdown
[all...]
H A Dtables.py17 import markdown namespace
18 from markdown import etree
21 class TableProcessor(markdown.blockprocessors.BlockProcessor):
86 class TableExtension(markdown.Extension):
H A Dabbr.py9 >>> import markdown
16 >>> markdown.markdown(text, ['abbr'])
26 import markdown, re namespace
27 from markdown import etree
32 class AbbrExtension(markdown.Extension):
40 class AbbrPreprocessor(markdown.preprocessors.Preprocessor):
46 Each reference is set as a new AbbrPattern in the markdown instance.
55 self.markdown.inlinePatterns['abbr-%s'%abbr] = \
77 class AbbrPattern(markdown
[all...]
H A Ddef_list.py22 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):
H A Dfenced_code.py9 >>> 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'])
52 Project website: <http://www.freewisdom.org/project/python-markdown/Fenced__Code__Block
63 import markdown, re namespace
[all...]
H A Drss.py1 import markdown namespace
2 from markdown import etree
4 DEFAULT_URL = "http://www.freewisdom.org/projects/python-markdown/"
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(
H A Dtoc.py8 * [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):
H A Dwikilinks.py11 >>> 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,
33 >>> md = markdown
81 import markdown namespace
[all...]
H A Dcodehilite.py11 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
178 class HiliteTreeprocessor(markdown.treeprocessors.Treeprocessor):
190 placeholder = self.markdown.htmlStash.store(code.hilite(),
200 class CodeHiliteExtension(markdown.Extension):
201 """ Add source code hilighting to markdown codeblocks. """
H A Dfootnotes.py4 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):
77 self.footnotes = markdown.odict.OrderedDict()
147 class FootnotePreprocessor(markdown.preprocessors.Preprocessor):
255 class FootnotePattern(markdown
[all...]
H A Dheaderid.py11 >>> 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)'])
51 >>> md = markdown
68 import markdown namespace
[all...]
/external/chromium_org/third_party/markdown/
H A D__main__.py0 # markdown is released under the BSD license
39 import markdown namespace
56 ver = "%%prog %s" % markdown.version
113 markdown.markdownFromFile(**options)
117 # Python 2.5 & 2.6 do: `python -m markdown.__main__ [options] [args]`.
118 # Python 2.7 & 3.x do: `python -m markdown [options] [args]`.
H A D__init__.py0 # markdown is released under the BSD license
42 import markdown
43 html = markdown.markdown(your_text_string)
55 Contact: markdown@freewisdom.org
81 __all__ = ['Markdown', 'markdown', 'markdownFromFile']
119 If they are a subclass of markdown.Extension, they will be used
201 'Extension "%s.%s" must be of type: "markdown.Extension"'
226 module_name = '.'.join(['third_party.markdown.extensions', ext_name])
229 try: # New style (markdown
428 def markdown(text, *args, **kwargs): function
[all...]
/external/markdown/markdown/
H A Dblockparser.py2 import markdown namespace
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.
H A Dpostprocessors.py12 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_TEXT
54 if safe or not self.markdown
[all...]
H A Dcommandline.py9 import markdown namespace
14 EXECUTABLE_NAME_FOR_USAGE = "python markdown.py"
96 markdown.markdownFromFile(**options)
H A Dhtml4.py0 # 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
H A Dpreprocessors.py11 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
[all...]
H A Dtreeprocessors.py1 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
90 if not isinstance(data, markdown.AtomicString):
92 while patternIndex < len(self.markdown
[all...]
H A Dblockprocessors.py11 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 \
155 li = markdown.etree.SubElement(parent, 'li')
163 indent_level = len(m.group(1))/markdown
[all...]
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dcontent_provider.py17 from third_party.markdown import markdown namespace
88 content = markdown(ToUnicode(text),
/external/markdown/
H A Dregression-tests.py6 Tests of the various APIs with the python markdown lib.
13 import markdown namespace
20 self.md = markdown.Markdown()
39 self.parser = markdown.Markdown().parser
43 root = markdown.etree.Element("div")
46 self.assertEqual(markdown.etree.tostring(root), "<div><p>foo</p></div>")
52 self.assert_(isinstance(tree, markdown.etree.ElementTree))
53 self.assert_(markdown.etree.iselement(tree.getroot()))
54 self.assertEqual(markdown.etree.tostring(tree.getroot()),
62 self.state = markdown
[all...]

Completed in 4509 milliseconds

12