Fix overzealous escaping of periods when escaping for Markdown.

Review Request #4830 — Created Oct. 22, 2013 and submitted

Information

Review Board
master

Reviewers

Fix overzealous escaping of periods when escaping for Markdown.

The period is listed as an escapable character, but it's really only
important after numbers at the beginning of a line. The regexes for
escaping now account for this, and don't escape periods elsewhere.

It's very likely we'll find we want to be even more thorough on some
other escaping, such as parens, but this is the most noticeable one.
Python and JavaScript unit tests pass.
Description From Last Updated

"after a number at the beginning of a line, indicating a numbered list"

daviddavid

This blank line seems unnecessary and excessive.

daviddavid
david
  1. 
      
  2. reviewboard/reviews/markdown_utils.py (Diff revision 1)
     
     
     

    "after a number at the beginning of a line, indicating a numbered list"

  3. reviewboard/reviews/markdown_utils.py (Diff revision 1)
     
     

    This blank line seems unnecessary and excessive.

  4. 
      
chipx86
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Loading...