• Chris McDonough's avatar
    A number of small changes and enhancements to the detection of symbols and gestures: · b29008c9
    Chris McDonough authored
     - All regexes attempt to now detect \r as well as \n as a newline character.
    
     - Fixed improper regex for emphasis which caused emphasized text to be rendered as strong.
    
     - Fixed href method to not return false positives for "comma", link:types.  In many cases, inappropriate things were being detected as comma-link-type hrefs.  Now only things with (http|https|ftp|mailto|file|about) as a leader are used as comma-link-types.
    
     - Changed ordered list types to not treat small words with following punctuation at the beginning of a paragraph (e.g. "Yes.") as an ordered list gesture.  Instead, only single characters (or any-length digits) followed by punctuation will be treated as an ordered list gesture.
    
    - Removed unused regular expression from doc_header signature.
    
    - Changed doc_literal, doc_emphasis, and doc_strong methods to
      work across newlines.  This means that people can start to type
      for example, a literal 'on one line and it should be ok to
      ... cross to the next'.  The danger here is that it will match
      too much (especially in the case of literals), but this is
      ameliorated by the fact that (at least for literals) the
      ending "'" is required to be followed by some kind of whitespace.
      Emphasis and strong don't have this limitation, but their symbology
      (*) is much less frequently used in normal writing.
    b29008c9
DocumentClass.py 34.8 KB