-
-
Save Jermolene/9ed9c11ff79f5c847ce8 to your computer and use it in GitHub Desktop.
Hack to double line breaks in selected tiddlers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tw.utils.each($tw.wiki.filterTiddlers($tw.wiki.getTiddlerText("$:/temp/advancedsearch")),function(title) {var tiddler=$tw.wiki.getTiddler(title);$tw.wiki.addTiddler(new $tw.Tiddler(tiddler,{text: tiddler.fields.text.replace(/\n/mg,"\n\n")}))}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a variant that adds
"""
to the top and bottom of each tiddler: