# Rustdoc: reStructuredText vs Markdown

**URL:** <https://internals.rust-lang.org/t/rustdoc-restructuredtext-vs-markdown/356>\
**Category:** tools and infrastructure\
**Created:** [August 8, 2014, 8:48pm UTC](https://internals.rust-lang.org/t/rustdoc-restructuredtext-vs-markdown/356 "2014-08-08T20:48:30Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![nathantypanski](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/nathantypanski/32/39_2.png) [@nathantypanski](https://internals.rust-lang.org/u/nathantypanski)\
**Post date:** [August 13, 2014, 1:08am UTC](https://internals.rust-lang.org/t/rustdoc-restructuredtext-vs-markdown/356/18 "2014-08-13T01:08:06Z")

</div>

I’ve used Sphinx a moderate amount, without actually ever writing my own directives. But I think I can comment a bit on ReST.

- It’s _hard_ to write. ReST is very picky and structured, unlike Markdown, and will break things in weird ways if you don’t use _three_ spaces in exactly the right place.
- Directives can behave strange and still often leave me unsure why my link isn’t working.
- Title syntax is more annoying than Markdown (and more picky; title underlines only - and they have to be the same exact length as the phrase above them).

On the other hand:

- Directives are _awesome_ when they work correctly. It offers a way to properly refer to separate types of links and get the right kind of text substitution/linkification for each of them.
- It basically has namespaces for documents. Or something. I can do `:py:class:`MyCoolClass`` and I know that it’s a `:class:` directive in the Python domain. If we made a Rust domain we could have `:rs:trait:`Index`` and `:rs:mod:`std`` for links. I think that’s a really great way to be able to automatically refer to code, mostly since you don’t have to write those links manually.

Basically agree with @steveklabnik in that I also have an inexplicable hatred for actually writing ReST. For some reason every time it doesn’t work properly I just get infuriated and wish I could just write Markdown everywhere, but be able to use Sphinx directives.

---

_[View the full topic](https://internals.rust-lang.org/t/rustdoc-restructuredtext-vs-markdown/356)._
