diff --git a/plugins/tiddlywiki/text-slicer/modules/slicer.js b/plugins/tiddlywiki/text-slicer/modules/slicer.js index a71706d66..3bb204e4a 100644 --- a/plugins/tiddlywiki/text-slicer/modules/slicer.js +++ b/plugins/tiddlywiki/text-slicer/modules/slicer.js @@ -361,6 +361,11 @@ Slicer.prototype.onEnd = function() { Slicer.prototype.addTextToCurrentChunk = function(str,field) { field = field || "text"; + if(this.currentChunk === null && str.trim() !== "") { + this.startNewChunk({ + "toc-type": "paragraph" + }); + } if(this.currentChunk !== null) { this.chunks[this.currentChunk][field] += str; }