Fix a UnicodeDecodeError processing markdown.
Review Request #7307 — Created May 16, 2015 and submitted — Latest diff uploaded
In some code paths, we end up passing a bytes object into the markdown library.
This isn't expected to work, and causes a UnicodeDecodeError noting that we
should only be passing in unicode objects. Because we have a number of
different code-paths doing different things, I've made it so therender_markdown
method can accept either bytes or unicode, and will decode if necessary.
Ran unit tests.