github/markup — pull request #307 by gjtorikian (2014-05-29 05:23:32+00:00)
Title: Show swallowed errors with notice

Just some late night hacking. :moon: :sleepy: :computer:

Right now, we're swallowing errors from RST; see https://github.com/github/markup/pull/271 or https://github.com/github/markup/pull/267.

What we could do instead is keep the logging level low, but, don't bomb, preserve the error message, and show the suspect text inline within a `pre`. Without such changes, faulty RST text just doesn't show up at all.
it kind of looks like a blunder on GitHub's part, IMHO.

Raw, it'd look something like this:

```html

The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.

Error with CSV data in "csv-table" directive:
"quotechar" must be an 1-character string

.. csv-table:: Things that are Awesome (on a scale of 1-11)
:quote: ”

Thing,Awesomeness
Icecream, 7
Honey Badgers, 10.5
Nickelback, -2
Iron Man, 10
Iron Man 2, 3
Tabular Data, 5
Made up ratings, 11

```

In real life, it could maybe be something like:

![screen shot 2014-05-28 at 10 19 08 pm](https://cloud.githubusercontent.com/assets/64050/3114317/cb175470-e6f0-11e3-9377-fc98badf8f40.png)

/cc @bkeepers @raganwald who worked around this before
/cc @github/markdown @github/user-content