Home
last modified time | relevance | path

Searched refs:markdown (Results 1 – 25 of 222) sorted by relevance

123456789

/external/dokka/core/src/main/kotlin/Markdown/
DMarkdownProcessor.kt3 import org.intellij.markdown.IElementType in <lambda>()
4 import org.intellij.markdown.MarkdownElementTypes in <lambda>()
5 import org.intellij.markdown.ast.ASTNode in <lambda>()
6 import org.intellij.markdown.ast.LeafASTNode in <lambda>()
7 import org.intellij.markdown.ast.getTextInNode in <lambda>()
8 import org.intellij.markdown.flavours.commonmark.CommonMarkFlavourDescriptor in <lambda>()
9 import org.intellij.markdown.parser.MarkdownParser in <lambda>()
11 class MarkdownNode(val node: ASTNode, val parent: MarkdownNode?, val markdown: String) { in <lambda>() constant in org.jetbrains.dokka.MarkdownNode
12 val children: List<MarkdownNode> = node.children.map { MarkdownNode(it, this, markdown) } in <lambda>()
14 val text: String get() = node.getTextInNode(markdown).toString() in <lambda>()
[all …]
/external/chromium-trace/catapult/devil/devil/utils/
Dmarkdown_test.py15 from devil.utils import markdown
21 self.assertEquals('**foo**', markdown.md_bold(raw))
25 self.assertEquals('**\\*foo\\***', markdown.md_bold(raw))
40 actual = markdown.md_code(raw, language='python')
64 actual = markdown.md_code(raw, language=None)
70 actual = markdown.md_escape(raw)
75 self.assertEquals('# Heading 1', markdown.md_heading(raw, level=1))
79 self.assertEquals('##### Heading 5', markdown.md_heading(raw, level=5))
83 self.assertEquals('###### Heading 10', markdown.md_heading(raw, level=10))
88 markdown.md_inline_code(raw))
[all …]
/external/markdown/markdown/
Dinlinepatterns.py44 import markdown
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.etree.Element(self.tag)
196 el.text = markdown.AtomicString(m.group(3).strip())
208 el1 = markdown.etree.Element(tag1)
209 el2 = markdown.etree.SubElement(el1, tag2)
[all …]
Dpostprocessors.py12 import markdown
17 self.markdown = markdown_instance
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.safeMode:
56 (markdown.preprocessors.HTML_PLACEHOLDER % i),
[all …]
Dblockprocessors.py16 import markdown
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.TAB_LENGTH
190 return block.startswith(' '*markdown.TAB_LENGTH)
[all …]
Dtreeprocessors.py1 import markdown
11 self.markdown = markdown_instance
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.inlinePatterns):
94 self.markdown.inlinePatterns.value_for_index(patternIndex),
[all …]
Dpreprocessors.py11 import markdown
13 HTML_PLACEHOLDER_PREFIX = markdown.STX+"wzxhzdk:"
14 HTML_PLACEHOLDER = HTML_PLACEHOLDER_PREFIX + "%d" + markdown.ETX
19 self.markdown = markdown_instance
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()))
180 self.markdown.htmlStash.store('\n\n'.join(items)))
[all …]
Dblockparser.py2 import markdown
45 self.blockprocessors = markdown.odict.OrderedDict()
59 self.root = markdown.etree.Element(markdown.DOC_TAG)
61 return markdown.etree.ElementTree(self.root)
/external/chromium-trace/catapult/devil/docs/
Dmarkdown.md1 # [devil.utils.markdown](https://chromium.googlesource.com/catapult.git/+/HEAD/devil/devil/utils/ma…
13 A really bare-bones argparse help formatter that generates valid markdown.
39 as valid markdown.
61 Write markdown documentation for the module at the provided path.
72 Returns markdown-formatted bold text.
75 Write markdown documentation for a class.
83 A list of markdown-formatted lines.
89 Returns a markdown-formatted code block in the given language.
92 Write a markdown-formatted docstring.
95 A list of markdown-formatted lines.
[all …]
/external/dokka/core/testdata/format/website/dataTags/
Dmultiplatform.package.md14 <tr data-platform="JVM" data-jre-version="JRE7"><td markdown="1">
17 <td markdown="1">
21 </tr><tr data-platform="JVM" data-kotlin-version="Kotlin 1.1" data-jre-version="JRE7"><td markdown=…
24 <td markdown="1">
28 </tr><tr data-platform="JS"><td markdown="1">
31 <td markdown="1">
35 </tr><tr data-platform="JS" data-kotlin-version="Kotlin 1.1"><td markdown="1">
38 <td markdown="1">
42 </tr><tr data-platform="JVM"><td markdown="1">
45 <td markdown="1">
[all …]
/external/markdown/docs/
Dusing_as_module.txt10 To use markdown as a module:
12 import markdown
13 html = markdown.markdown(your_text_string)
18 Note that ``markdown()`` expects **Unicode** as input (although a simple ASCII
25 html = markdown.markdown(text, extensions)
38 import markdown
39 md = markdown.Markdown(
49 md = markdown.Markdown()
63 md = markdown.Markdown()
66 The markdown module also includes a shortcut function ``markdownFromFile`` that
[all …]
Dcommand_line.txt12 Generally, you may simply call the ``markdown`` file from the command
14 ``easy_install``), then the ``markdown`` script will have been copied to
25 Calling ``markdown`` from th ecommand line will call the wrapper batch file
26 ``markdown.bat`` in the "Scripts" directory created during install.
34 and see if it works. Just run ``markdown`` from the command line.
40 * If you are sure ``markdown`` is on your path, but it still isn't being
45 markdown text files will not likely be in that directory, so it is much more
46 convenient to have ``markdown`` on your path.
51 To use ``markdown`` from the command line, run it as
53 $ markdown input_file.txt
[all …]
DREADME10 [Python-Markdown]: http://freewisdom.org/projects/python-markdown
11 [Markdown]: http://daringfireball.net/projects/markdown/
12 [Features]: http://www.freewisdom.org/projects/python-markdown/Features
13 [Available Extensions]: http://www.freewisdom.org/projects/python-markdown/Available_Extensions
21 <http://freewisdom.org/projects/python-markdown>.
28 [mailing list]: http://lists.sourceforge.net/lists/listinfo/python-markdown-discuss
29 [bug tracker]: http://www.freewisdom.org/projects/python-markdown/Tickets
/external/markdown/markdown/extensions/
Dabbr.py26 import markdown, re
27 from markdown import etree
32 class AbbrExtension(markdown.Extension):
40 class AbbrPreprocessor(markdown.preprocessors.Preprocessor):
55 self.markdown.inlinePatterns['abbr-%s'%abbr] = \
77 class AbbrPattern(markdown.inlinepatterns.Pattern):
81 markdown.inlinepatterns.Pattern.__init__(self, pattern)
Ddef_list.py22 import markdown, re
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):
/external/markdown/
Dregression-tests.py13 import markdown
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.blockparser.State()
99 self.stash = markdown.preprocessors.HtmlStash()
[all …]
/external/markdown/docs/extensions/
DRSS.txt7 An extension to Python-Markdown that outputs a markdown document as RSS. This
16 >>> import markdown
17 >>> text = "Some markdown document."
18 >>> rss = markdown.markdown(text, ['rss'])
33 >>> rss = markdown.markdown(text, extensions = \
DAbbreviations.txt18 [php]: http://www.michelf.com/projects/php-markdown/extra/#abbr
38 >>> import markdown
44 >>> html = markdown.markdown(text, ['abbr'])
48 >>> html = markdown.markdown(text, ['abbr', 'footnotes'])
53 markdown.py -x abbr source.txt > output.html
Dfootnotes.txt19 [PHP Markdown Extra]: http://michelf.com/projects/php-markdown/extra/#footnotes
30 blockquotes and most any other markdown syntax. The additional line simply
47 markdown document (See how to configure this text below):
56 >>> html = markdown.markdown(text, ['footnotes'])
59 use any existing markdown syntax):
61 >>> html = markdown.markdown(text, ['footnotes(PLACE_MARKER=+++my marker+++)'])
DDefinition_Lists.txt18 [php]: http://www.michelf.com/projects/php-markdown/extra/#def-list
46 >>> html = markdown.markdown(text, ['def_list'])
50 >>> html = markdown.markdown(text, ['def_list', 'footnotes'])
55 markdown.py -x def_list source.txt > output.html
/external/google-styleguide/docguide/
Dstyle.md32 1. [Use informative Markdown link titles](#use-informative-markdown-link-titles)
35 1. [Strongly prefer Markdown to HTML](#strongly-prefer-markdown-to-html)
41 ```markdown
72 …[`[TOC]` documentation](https://gerrit.googlesource.com/gitiles/+/master/Documentation/markdown.md…
85 ```markdown
90 …et. See the [foo docs](https://gerrit.googlesource.com/gitiles/+/master/Documentation/markdown.md).
96 ```markdown
98 [foo docs](https://gerrit.googlesource.com/gitiles/+/master/Documentation/markdown.md)
118 ```markdown
126 ```markdown
[all …]
/external/tensorflow/tensorflow/lite/g3doc/tutorials/
Dmodel_maker_text_classification.ipynb4 "cell_type": "markdown",
35 "cell_type": "markdown",
44 "cell_type": "markdown",
66 "cell_type": "markdown",
77 "cell_type": "markdown",
86 "cell_type": "markdown",
107 "cell_type": "markdown",
137 "cell_type": "markdown",
162 "cell_type": "markdown",
173 "cell_type": "markdown",
[all …]
Dmodel_maker_question_answer.ipynb4 "cell_type": "markdown",
35 "cell_type": "markdown",
44 "cell_type": "markdown",
66 "cell_type": "markdown",
77 "cell_type": "markdown",
86 "cell_type": "markdown",
105 "cell_type": "markdown",
114 "cell_type": "markdown",
123 "cell_type": "markdown",
148 "cell_type": "markdown",
[all …]
/external/dokka/core/testdata/format/website/dataTagsInGroupNode/
Dmultiplatform.package.md14 <tr data-platform="JS"><td markdown="1">
17 <td markdown="1">
21 </tr><tr data-platform="JVM"><td markdown="1">
24 <td markdown="1">
35 <tr data-platform="JVM"><td markdown="1">
38 <td markdown="1">
/external/markdown/tests/misc/
Dem-around-links.txt3 - *[Python in Markdown](http://www.freewisdom.org/projects/python-markdown/) by some
5 - _[Python in Markdown](http://www.freewisdom.org/projects/python-markdown/) by some
7 - [_Python in Markdown_](http://www.freewisdom.org/projects/python-markdown/) by some
9 - [_Python in Markdown_](http://www.freewisdom.org/projects/python-markdown/) _by some
12 _[Python in Markdown](http://www.freewisdom.org/projects/python-markdown/) by some

123456789