Commit b09aa8c889c0cdd9cb201c4e0f8edb04d4fabdc6
- Diff rendering mode:
- inline
- side by side
twotwodo.js
(3 / 2)
|   | |||
| 34 | 34 | } | |
| 35 | 35 | var i = 0, tmp1, tmp2 = html; | |
| 36 | 36 | do { | |
| 37 | tmp1 = tmp2; i++; | ||
| 37 | tmp1 = tmp2; | ||
| 38 | 38 | tmp2 = tmp1.replace(/(^|[^>]):(todo|started|done|canceled)/, | |
| 39 | 39 | '$1<span class="state $2" id="'+tid+'-state-'+i+'">:$2</span>'); | |
| 40 | i++; | ||
| 40 | 41 | } while (tmp1 != tmp2); | |
| 41 | 42 | html = tmp2; | |
| 42 | 43 | ||
| … | … | ||
| 70 | 70 | }, | |
| 71 | 71 | cur_memo: 'memo', | |
| 72 | 72 | memo: { | |
| 73 | 'memo': 'This is the MemoWiki content for the \'memo\' hashtag :-)<br />Like tasks, memo can contains state markers and hashtag links to other memo.<br /><br />Write #another memo [<span class="state todo" id="memo-state-0">:todo</span>]' | ||
| 73 | 'memo': 'This is the MemoWiki content for the \'memo\' hashtag :-)<br />Like tasks, memo can contains state markers and hashtag links to other memo.<br /><br />Write #<span class="memowiki">another</span> memo [<span class="state todo" id="memo-state-0">:todo</span>]' | ||
| 74 | 74 | } | |
| 75 | 75 | }; | |
| 76 | 76 |

