Escape '_' in all parts of a string when escaping for Markdown.

Review Request #5857 — Created May 22, 2014 and submitted

Information

Review Board
release-2.0.x
2e25465...

Reviewers

While our Markdown formatting through marked.js technically allows '_'
to be unescaped in the middle of words without problems, it breaks
down in practice. There are bugs in marked.js that can cause '_' in
different parts of a string to be turend into emphasis.

Until that's fixed, or we move to server-side Markdown rendering, we'll
need to disable the escaping of '_' within words in order to prevent
these problems.

Tested a string that reproduced the problem (generated by Review Bot).

Unit tests pass.

david
  1. Ship It!

  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (2b1822b)