Changeset 4936
- Timestamp:
- 05/14/08 04:32:49 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Trunk/contributors/MartinBudden/formatters/ConfluenceFormatterPlugin.js
r2488 r4936 5 5 |''Source:''|http://www.martinswiki.com/#ConfluenceFormatterPlugin | 6 6 |''CodeRepository:''|http://svn.tiddlywiki.org/Trunk/contributors/MartinBudden/formatters/ConfluenceFormatterPlugin.js | 7 |''Version:''|0.1. 3|7 |''Version:''|0.1.4| 8 8 |''Date:''|Dec 8, 2006| 9 9 |''Comments:''|Please make comments at http://groups.google.co.uk/group/TiddlyWikiDev | … … 210 210 w.subWikifyTerm(cell,this.cellTermRegExp); 211 211 if(cellMatch[1]) { 212 // End of row212 //# End of row 213 213 w.nextMatch = this.cellRegExp.lastIndex; 214 214 return true; 215 215 } else { 216 // Cell216 //# Cell 217 217 w.nextMatch--; 218 218 } … … 239 239 var style = lookaheadMatch[3] ? 'square' : null; 240 240 listType = lookaheadMatch[1] ? 'ol' : 'ul'; 241 listLevel = lookaheadMatch[0].length ;241 listLevel = lookaheadMatch[0].length - 1; 242 242 w.nextMatch += listLevel; 243 243 if(listLevel > currLevel){ … … 320 320 name: 'confluenceExternalLink', 321 321 match: '(?:".*?" ?):?[a-z]{2,8}:', 322 lookaheadRegExp: /(?:\"(.*?)(?:\((.*?)\))?\" ?):?(.*?)(?=\s|$)/mg, 322 lookaheadRegExp: /(?:\"(.*?)(?:\((.*?)\))?\" ?):?(.*?)(?=\s|$)/mg, //" 323 323 handler: function(w) 324 324 { … … 446 446 }, 447 447 { 448 name: 'confluence Paragraph',448 name: 'confluenceBreak', 449 449 match: '\\n{2,}', 450 450 handler: function(w) 451 451 { 452 createTiddlyElement(w.output,' p');452 createTiddlyElement(w.output,'br'); 453 453 } 454 454 }, … … 523 523 name: 'confluenceHtmlTag', 524 524 match: "<(?:[a-zA-Z]{2,}|a)(?:\\s*(?:(?:.*?)=[\"']?(?:.*?)[\"']?))*?>", 525 lookaheadRegExp: /<([a-zA-Z]+)((?:\s+(?:.*?)=["']?(?:.*?)["']?)*?)?\s*(\/)?>(?:\n?)/mg, 525 lookaheadRegExp: /<([a-zA-Z]+)((?:\s+(?:.*?)=["']?(?:.*?)["']?)*?)?\s*(\/)?>(?:\n?)/mg, //' 526 526 handler: function(w) 527 527 {
