Home
last modified time | relevance | path

Searched full:markdown (Results 1 – 25 of 687) sorted by relevance

12345678910>>...28

/external/markdown/docs/
Dreference.md3 # Using Markdown as a Python Library
5 First and foremost, Python-Markdown is intended to be a python library module
6 used by various projects to convert Markdown syntax into HTML.
10 To use markdown as a module:
13 import markdown
14 html = markdown.markdown(your_text_string)
19 Python-Markdown provides two public functions ([`markdown.markdown`](#markdown)
20 and [`markdown.markdownFromFile`](#markdownFromFile)) both of which wrap the
21 public class [`markdown.Markdown`](#Markdown). If you're processing one
24 instance of the `markdown.Markdown` class and pass multiple documents through
[all …]
Dtest_tools.md5 Python-Markdown provides some testing tools which simplify testing actual
6 Markdown output against expected output. The tools are built on the Python
8 required. While Python-Markdown uses the tools for its own tests, they were
10 Therefore, the tools are importable from `markdown.test_tools`.
13 `markdown.test_tools.TestCase` and `markdown.test_tools.LegacyTestCase`.
15 ## markdown.test_tools.TestCase
17 The `markdown.test_tools.TestCase` class is a `unittest.TestCase` subclass with
18 a few additional helpers to make testing Markdown output easier.
21 : `default_kwargs`: A `dict` of keywords to pass to Markdown for each
26 dictionary of `expected_attrs`, and any keywords to pass to Markdown. The
[all …]
Dcontributing.md1 # Contributing to Python-Markdown
3 The following is a set of guidelines for contributing to Python-Markdown and its
4 extensions, which are hosted in the [Python-Markdown Organization] on GitHub.
11 [Python-Markdown Code of Conduct]. By participating, you are expected to uphold
12 this code. Please report unacceptable behavior to <python.markdown@gmail.com>.
16 The core Python-Markdown code base and any built-in extensions are hosted in the
17 [Python-Markdown/markdown] project on GitHub. Other extensions maintained by the
18 Python-Markdown project may be hosted as separate repositories in the
19 [Python-Markdown Organization] on GitHub and must follow best practices for
22 The [Python-Markdown/markdown] project is organized as follows:
[all …]
Dindex.md1 title: Python-Markdown
3 Python-Markdown
7 [Markdown](https://daringfireball.net/projects/markdown/).
10 [Syntax Documentation](https://daringfireball.net/projects/markdown/syntax)
19 The Python-Markdown project is developed with the following goals in mind:
23 an implementation of the markdown parser that follows the
24 [syntax rules](https://daringfireball.net/projects/markdown/syntax) and the
25 behavior of the original (markdown.pl) implementation as reasonably as
34 In addition to the basic markdown syntax, Python-Markdown supports the following
39 Python-Markdown will accept [input](reference.md#text) in any language
[all …]
/external/markdown/
Dsetup.py3 Python Markdown
5 A Python implementation of John Gruber's Markdown.
7 Documentation: https://python-markdown.github.io/
8 GitHub: https://github.com/Python-Markdown/markdown/
9 PyPI: https://pypi.org/project/Markdown/
16 Copyright 2007-2018 The Python Markdown Project (v. 1.7 and later)
29 """Get version and version_info from markdown/__meta__.py file."""
30 module_path = os.path.join(os.path.dirname('__file__'), 'markdown', '__meta__.py')
52 # conflict with the perl implementation (which uses "markdown").
59 name='Markdown',
[all …]
DREADME.md1 [Python-Markdown][]
11 [build-button]: https://github.com/Python-Markdown/markdown/workflows/CI/badge.svg?event=push
12 [build]: https://github.com/Python-Markdown/markdown/actions?query=workflow%3ACI+event%3Apush
13 [codecov-button]: https://codecov.io/gh/Python-Markdown/markdown/branch/master/graph/badge.svg
14 [codecov]: https://codecov.io/gh/Python-Markdown/markdown
15 [mdversion-button]: https://img.shields.io/pypi/v/Markdown.svg
16 [md-pypi]: https://pypi.org/project/Markdown/
17 [pyversion-button]: https://img.shields.io/pypi/pyversions/Markdown.svg
21 [Code of Conduct]: https://github.com/Python-Markdown/markdown/blob/master/CODE_OF_CONDUCT.md
23 This is a Python implementation of John Gruber's [Markdown][].
[all …]
/external/markdown/docs/extensions/
Dmd_in_html.md1 title: Markdown in HTML Extension
3 # Markdown in HTML
7 An extension that parses Markdown inside of HTML tags.
11 By default, Markdown ignores any content within a raw HTML block-level element. With the `md-in-htm…
12 …content of a raw HTML block-level element can be parsed as Markdown by including a `markdown` att…
13 on the opening tag. The `markdown` attribute will be stripped from the output, while all other attr…
16 The `markdown` attribute can be assigned one of three values: [`"1"`](#1), [`"block"`](#block), or …
21 …ing to the HTML specification. Whereas the `"span"` and `"block"` values assigned to the `markdown`
22 attribute refer to the Markdown parser's behavior.
24 ### `markdown="1"` { #1 }
[all …]
Dapi.md3 # Writing Extensions for Python-Markdown
5 Python-Markdown includes an API for extension writers to plug their own custom functionality and sy…
27 Preprocessors munge the source text before it is passed to the Markdown parser. This is an excellen…
30 Preprocessors inherit from `markdown.preprocessors.Preprocessor` and implement a `run` method, whic…
39 from markdown.preprocessors import Preprocessor
56 Some preprocessors in the Markdown source tree include:
66 [c1]: https://github.com/Python-Markdown/markdown/blob/master/markdown/preprocessors.py
67 [c2]: https://github.com/Python-Markdown/markdown/blob/master/markdown/preprocessors.py
68 [c3]: https://github.com/Python-Markdown/markdown/blob/master/markdown/preprocessors.py
69 [c4]: https://github.com/Python-Markdown/markdown/blob/master/markdown/extensions/meta.py
[all …]
Dindex.md5 Python Markdown offers a flexible extension mechanism, which makes it possible
9 To use an extension, pass it to markdown with the `extensions` keyword.
12 markdown.markdown(some_text, extensions=[MyExtClass(), 'myext', 'path.to.my.ext:MyExtClass'])
20 python -m markdown -x myext -x path.to.module:MyExtClass input.txt > output.html
33 and are officially supported by Python-Markdown. Any documentation is
35 have a typical install of Python-Markdown, these extensions are already
40 [Extra] | `extra` | `markdown.extensions.extra`
41 &nbsp; &nbsp; [Abbreviations] | `abbr` | `markdown.extensions.abbr`
42 &nbsp; &nbsp; [Attribute Lists] | `attr_list` | `markdown.extensions.attr_list`
43 &nbsp; &nbsp; [Definition Lists] | `def_list` | `markdown.extensions.def_list`
[all …]
/external/markdown/tests/
Dtest_apis.py2 Python Markdown
4 A Python implementation of John Gruber's Markdown.
6 Documentation: https://python-markdown.github.io/
7 GitHub: https://github.com/Python-Markdown/markdown/
8 PyPI: https://pypi.org/project/Markdown/
15 Copyright 2007-2018 The Python Markdown Project (v. 1.7 and later)
21 Python-Markdown Regression Tests
24 Tests of the various APIs with the python markdown lib.
30 import markdown
32 from markdown.__main__ import parse_options
[all …]
/external/markdown/tests/test_syntax/extensions/
Dtest_md_in_html.py3 Python Markdown
5 A Python implementation of John Gruber's Markdown.
7 Documentation: https://python-markdown.github.io/
8 GitHub: https://github.com/Python-Markdown/markdown/
9 PyPI: https://pypi.org/project/Markdown/
16 Copyright 2007-2018 The Python Markdown Project (v. 1.7 and later)
24 from markdown.test_tools import TestCase
26 from markdown import Markdown
38 md = Markdown(extensions=['md_in_html'])
55 '<p markdown="1">*foo*</p>',
[all …]
/external/markdown/docs/change_log/
Drelease-2.6.md3 # Python-Markdown 2.6 Release Notes
5 We are pleased to release Python-Markdown 2.6 which adds a few new features
8 Python-Markdown version 2.6 supports Python versions 2.7, 3.2, 3.3, and 3.4 as
20 alternative, the developers of Python-Markdown recommend that any untrusted
22 converted to HTML by markdown. In fact, [Bleach Whitelist] provides a curated
29 html = markdown.markdown(text, safe_mode=True)
37 html = bleach.clean(markdown.markdown(text), markdown_tags, markdown_attrs)
45 from markdown.extensions import Extension
52 html = markdown.markdown(text, extensions=[EscapeHtml()])
64 Positional arguments on the `markdown.Markdown()` class are deprecated as are
[all …]
Drelease-3.0.md3 # Python-Markdown 3.0 Release Notes
5 We are pleased to release Python-Markdown 3.0 which adds a few new features and
9 Python-Markdown version 3.0 supports Python versions 2.7, 3.4, 3.5, 3.6, 3.7,
45 security when using it. As an alternative, the developers of Python-Markdown
47 [Bleach]) after being converted to HTML by markdown. In fact, [Bleach Whitelist]
54 html = markdown.markdown(text, safe_mode=True)
62 html = bleach.clean(markdown.markdown(text), markdown_tags, markdown_attrs)
70 from markdown.extensions import Extension
77 html = markdown.markdown(text, extensions=[EscapeHtml()])
89 Positional arguments on the `markdown.Markdown()` class are deprecated as are
[all …]
Drelease-2.5.md3 Python-Markdown 2.5 Release Notes
6 We are pleased to release Python-Markdown 2.5 which adds a few new features
9 Python-Markdown version 2.5 supports Python versions 2.7, 3.2, 3.3, and 3.4.
14 * Python-Markdown no longer supports Python version 2.6. You must be using Python
31 the developers of Python-Markdown recommend that any untrusted content be
33 by markdown.
37 html = markdown.markdown(text, same_mode=True)
42 html = bleach.clean(markdown.markdown(text))
48 from markdown.extensions import Extension
55 html = markdown.markdown(text, extensions=[EscapeHtml()])
[all …]
Drelease-2.1.md3 Python-Markdown 2.1 Release Notes
6 We are pleased to release Python-Markdown 2.1 which makes many
8 While 2.1 consists mostly of bug fixes, bringing Python-Markdown more inline
12 Python-Markdown supports Python versions 2.4, 2.5, 2.6, 2.7, 3.1, and 3.2 out
19 While Python-Markdown has received only minor internal changes since the last
27 supported due to a bug in its 2to3 tool. If you must use Python-Markdown with
31 * Python-Markdown previously accepted positional arguments on its class and
37 * Past versions of Python-Markdown provided module level Global variables which
39 variables have been replaced with attributes on the Markdown class.
53 * Some code was moved into the `markdown.util` namespace which was previously in
[all …]
Drelease-3.4.md3 # Python-Markdown 3.4 Release Notes
5 Python-Markdown version 3.4 supports Python versions 3.7, 3.8, 3.9, 3.10 and
27 from markdown.extensions.tables import TableExtension
29 markdown.markdown(src, extensions=[TableExtension(use_align_attribute=True)])
52 | `markdown.version` | `markdown.__version__` |
53 | `markdown.version_info` | `markdown.__version_info__` |
54 | `markdown.util.etree` | `xml.etree.ElementTree` |
55 | `markdown.util.string_type` | `str` |
56 | `markdown.util.text_type` | `str` |
57 | `markdown.util.int2str` | `chr` |
[all …]
/external/markdown/tests/extensions/extra/
Draw-html.txt1 <div markdown="1">_foo_</div>
3 <div markdown=1 class="baz">
7 <div markdown>
13 <div markdown="1" name="Example">
17 <div markdown="1" name="DefaultBlockMode">
23 <p markdown="1" name="DefaultSpanMode">
29 <div markdown="span" name="SpanModeOverride">
34 <p markdown="block" name="BlockModeOverride">
46 This text is after the markdown in html.
48 <div markdown="1" name="issue308">
[all …]
Dmarkdown-syntax.txt1 Markdown: Syntax
5 <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
6 <li><a href="/projects/markdown/basics" title="Markdown Basics">Basics</a></li>
7 <li><a class="selected" title="Markdown Syntax Documentation">Syntax</a></li>
8 … <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
9 <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
34 **Note:** This document is itself written using Markdown; you
37 [src]: /projects/markdown/syntax.text
45 Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
47 Readability, however, is emphasized above all else. A Markdown-formatted
[all …]
/external/google-styleguide/docguide/
Dstyle.md1 # Markdown style guide
3 Much of what makes Markdown great is the ability to write plain text, and get
5 your Markdown should be simple and consistent with the whole corpus wherever
11 2. *Markdown files are maintainable over time and across teams.*
32 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).
[all …]
/external/markdown/tests/php/extra/
DInline HTML with Markdown content.text1 # Markdown inside code blocks
3 <div markdown="1">
7 <div markdown='1'>
11 <div markdown=1>
16 <tr><td markdown="1">test _emphasis_ (span)</td></tr>
20 <tr><td markdown="span">test _emphasis_ (span)</td></tr>
24 <tr><td markdown="block">test _emphasis_ (block)</td></tr>
30 <tr><td markdown="1">
32 <tr><td markdown="span">
34 <tr><td markdown="block">
[all …]
/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/markdown/tests/pl/Tests_2004/
DMarkdown Documentation - Syntax.text1 Markdown: Syntax
5 <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
6 <li><a href="/projects/markdown/basics" title="Markdown Basics">Basics</a></li>
7 <li><a class="selected" title="Markdown Syntax Documentation">Syntax</a></li>
8 … <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
9 <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
34 **Note:** This document is itself written using Markdown; you
37 [src]: /projects/markdown/syntax.text
45 Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
47 Readability, however, is emphasized above all else. A Markdown-formatted
[all …]
/external/markdown/tests/basic/
Dmarkdown-syntax.txt1 Markdown: Syntax
5 <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
6 <li><a href="/projects/markdown/basics" title="Markdown Basics">Basics</a></li>
7 <li><a class="selected" title="Markdown Syntax Documentation">Syntax</a></li>
8 … <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
9 <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
34 **Note:** This document is itself written using Markdown; you
37 [src]: /projects/markdown/syntax.text
45 Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
47 Readability, however, is emphasized above all else. A Markdown-formatted
[all …]
/external/markdown/tests/pl/Tests_2007/
DMarkdown Documentation - Syntax.text1 Markdown: Syntax
5 <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
6 <li><a href="/projects/markdown/basics" title="Markdown Basics">Basics</a></li>
7 <li><a class="selected" title="Markdown Syntax Documentation">Syntax</a></li>
8 … <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
9 <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
34 **Note:** This document is itself written using Markdown; you
37 [src]: /projects/markdown/syntax.text
45 Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
47 Readability, however, is emphasized above all else. A Markdown-formatted
[all …]
/external/markdown/tests/extensions/
Dtoc.txt8 Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
10 Readability, however, is emphasized above all else. A Markdown-formatted
13 Markdown's syntax has been influenced by several existing text-to-HTML
16 inspiration for Markdown's syntax is the format of plain text email.
25 To this end, Markdown's syntax is comprised entirely of punctuation
28 look like \*emphasis\*. Markdown lists look like, well, lists. Even
36 Markdown's syntax is intended for one purpose: to be used as a
39 Markdown is not a replacement for HTML, or even close to it. Its
43 insert. The idea for Markdown is to make it easy to read, write, and
44 edit prose. HTML is a *publishing* format; Markdown is a *writing*
[all …]

12345678910>>...28