Commit 02597c16 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau Committed by Bastien Nocera
Browse files

Add MIME type for reStructuredText (text/x-rst)

https://bugs.freedesktop.org/show_bug.cgi?id=107227
parent 111d3397
......@@ -5636,6 +5636,11 @@ command to generate the output files.
<glob pattern="*.owl"/>
<root-XML namespaceURI="http://www.w3.org/1999/02/22-rdf-syntax-ns#" localName="RDF"/>
</mime-type>
<mime-type type="text/x-rst">
<_comment>reStructuredText document</_comment>
<sub-class-of type="text/plain"/>
<glob pattern="*.rst"/>
</mime-type>
<mime-type type="application/owl+xml">
<_comment>OWL XML file</_comment>
<acronym>OWL</acronym>
......
......@@ -586,6 +586,8 @@ test10.gpx application/gpx+xml ox
test.gnd application/gnunet-directory
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=27441
markdown.md text/markdown oxo
# Manually assembled from formatting examples at https://en.wikipedia.org/wiki/ReStructuredText
reStructuredText.rst text/x-rst ox
text.ps application/postscript
text.ps.gz application/x-gzpostscript ox
text.PS.gz application/x-gzpostscript oxo
......
Examples from Wikipedia page
============================
Lists
-----
- A bullet list item
- Second item
- A sub item
- Spacing between items creates separate lists
- Third item
1) An enumerated list item
2) Second item
a) Sub item that goes on at length and thus needs
to be wrapped. Note the indentation that must
match the beginning of the text, not the
enumerator.
i) List items can even include
paragraph breaks.
3) Third item
#) Another enumerated list item
#) Second item
Images
------
.. image:: /path/to/image.jpg
Named links
-----------
A sentence with links to Wikipedia_ and the `Linux kernel archive`_.
.. _Wikipedia: https://www.wikipedia.org/
.. _Linux kernel archive: https://www.kernel.org/
Anonymous links
---------------
Another sentence with an `anonymous link to the Python website`__.
__ https://www.python.org/
Literal blocks
--------------
::
some literal text
This may also be used inline at the end of a paragraph, like so::
some more literal text
.. code:: python
print("A literal block directive explicitly marked as python code")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment