-
-
reviewboard/reviews/markdown_utils.py (Diff revision 1) "after a number at the beginning of a line, indicating a numbered list"
-
reviewboard/reviews/markdown_utils.py (Diff revision 1) This blank line seems unnecessary and excessive.
Fix overzealous escaping of periods when escaping for Markdown.
Review Request #4830 — Created Oct. 22, 2013 and submitted
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.
Change Summary:
- Rewrote to handle variations on number lists. It now supports 1.2. format and indentation.
- Improved comments a bit.
Description: |
|
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
||||||||||||||||||||||||
Diff: |
Revision 2 (+61 -12) |
Description: |
|
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|