Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js |
— | — | @@ -414,9 +414,8 @@ |
415 | 415 | outline[h] = { 'text': match[2], 'wrapper': div, 'level': match[1].length, 'index': h + 1 }; |
416 | 416 | h++; |
417 | 417 | } |
418 | | - context.$content.html( context.$content.html().replace( /\r?\n/g, "<br>" ) ); |
419 | 418 | context.$content.each( traverseTextNodes ); |
420 | | - |
| 419 | + |
421 | 420 | // Normalize heading levels for list creation |
422 | 421 | // This is based on Linker::generateTOC(), so it should behave like the |
423 | 422 | // TOC on rendered articles does - which is considdered to be correct |