Changeset 718

Show
Ignore:
Timestamp:
09/15/06 15:23:06 (2 years ago)
Author:
JeremyRuston
Message:

Fix for problem of new --strikethrough-- formatting clashing with "fake emdash" (--) (ticket #169)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Branches/2.1/core/js/Formatter.js

    r717 r718  
    493493{ 
    494494        name: "strikeByChar", 
    495         match: "--", 
    496         termRegExp: /(--)/mg, 
     495        match: "--(?!\\s|$)", 
     496        termRegExp: /((?!\s)--|(?=\n\n))/mg, 
    497497        element: "strike", 
    498498        handler: config.formatterHelpers.createElementAndWikify 
     
    557557 
    558558{ 
     559        name: "mdash", 
     560        match: "--", 
     561        handler: function(w) 
     562                { 
     563                createTiddlyElement(w.output,"span").innerHTML = "&mdash"; 
     564                } 
     565}, 
     566 
     567{ 
    559568        name: "htmlEntitiesEncoding", 
    560569        match: "(?:(?:&#?[a-zA-Z0-9]{2,8};|.)(?:&#?(?:x0*(?:3[0-6][0-9a-fA-F]|1D[c-fC-F][0-9a-fA-F]|20[d-fD-F][0-9a-fA-F]|FE2[0-9a-fA-F])|0*(?:76[89]|7[7-9][0-9]|8[0-7][0-9]|761[6-9]|76[2-7][0-9]|84[0-3][0-9]|844[0-7]|6505[6-9]|6506[0-9]|6507[0-1]));)+|&#?[a-zA-Z0-9]{2,8};)",