Searched refs:markdown (Results 1 - 25 of 43) 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 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 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 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 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 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 Dtables.py17 import markdown namespace
18 from markdown import etree
21 class TableProcessor(markdown.blockprocessors.BlockProcessor):
86 class TableExtension(markdown.Extension):
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 Dimagelinks.py21 import re, markdown namespace
30 class ImageLinksExtension(markdown.Extension):
37 class ImageLinkPreprocessor(markdown.preprocessors.Preprocessor):
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...]
/external/markdown/bin/
H A Dmarkdown10 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
33 from markdown import COMMAND_LINE_LOGGING_LEVEL
34 from markdown import commandline
/external/markdown/markdown/
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 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 Dinlinepatterns.py7 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:
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)
195 el = 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...]
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 Detree_loader.py2 from markdown import message, CRITICAL
H A Dcommandline.py9 import markdown namespace
14 EXECUTABLE_NAME_FOR_USAGE = "python markdown.py"
96 markdown.markdownFromFile(**options)
/external/chromium_org/third_party/markdown/
H A Dpostprocessors.py0 # markdown is released under the BSD license
66 Postprocessors must extend markdown.Postprocessor.
85 for i in range(self.markdown.htmlStash.html_counter):
86 html, safe = self.markdown.htmlStash.rawHtmlBlocks[i]
87 if self.markdown.safeMode and not safe:
88 if str(self.markdown.safeMode).lower() == 'escape':
90 elif str(self.markdown.safeMode).lower() == 'remove':
93 html = self.markdown.html_replacement_text
94 if self.isblocklevel(html) and (safe or not self.markdown.safeMode):
96 (self.markdown
[all...]
H A Dblockparser.py0 # markdown is released under the BSD license
78 def __init__(self, markdown):
81 self.markdown = markdown
84 """ Parse a markdown document into an ElementTree.
94 self.root = util.etree.Element(self.markdown.doc_tag)
99 """ Parse a chunk of markdown text and attach to given etree node.
113 """ Process blocks of markdown text and attach to given etree node.
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 Dpreprocessors.py0 # markdown is released under the BSD license
66 Preprocessors must extend markdown.Preprocessor.
86 source = source.expandtabs(self.markdown.tab_length)
222 if self.markdown_in_raw and 'markdown' in attrs.keys():
228 self.markdown.htmlStash.store(start))
231 self.markdown.htmlStash.store(end))
234 self.markdown.htmlStash.store(block.strip()))
245 self.markdown.htmlStash.store(block.strip()))
265 if self.markdown_in_raw and 'markdown' in attrs.keys():
272 self.markdown
[all...]
/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 151 milliseconds

12