TonyM Here I have a mod tiddler with the point rule:
created: 20190926215441878 modified: 20190926215441878 modloader-source: $:/core modloader-target: $:/core/modules/parsers/wikiparser/rules/list.js title: $:/list.js.mod type: text/x-patch @@ -900,39 +900,78 @@ gExp = /(%5B%5C*#;:%3E +%5C. %5D+) -/mg; +%7C(%5B %5D%7B2,%7D$)/mg; // Cd.K dot, double blank %0A%7D;%0A%0Avar listTyp @@ -1164,32 +1164,130 @@ %22, itemTag: %22p%22%7D +,%0A%09%22.%22: %7BlistTag: %22p%22, itemTag: %22p%22%7D, // Cd.K dot%0A%09%22 %22: %7BlistTag: %22p%22, itemTag: %22p%22%7D // Cd.K blank %0A%7D;%0A%0A/*%0AParse th @@ -1529,23 +1529,62 @@ (%5B%5C*#;:%3E +%5C. %5D+) -/mg; +%7C(%5B %5D%7B2,%7D$)/mg; // Cd.K dot, double blank %0A%09%09reMat @@ -1825,32 +1825,269 @@ %5B0%5D.charAt(0)%5D;%0A +%09%09// Cd.K%0A%09%09if (match%5B0%5D.charAt(0) == %22.%22) %7B%0A%09%09%09console.log(%22Cd.K wikparser/rules/list.js 87 found leading '.' case%22)%0A%09%09%7D%0A%09%09if (match%5B0%5D.charAt(0) == %22 %22) %7B%0A%09%09%09console.log(%22Cd.K wikparser/rules/list.js 90 found trailing blank case%22)%0A%09%09%7D%0A %09%09if(listStack.l Save as `list.js.mod.tid` You take an empty TiddlyWiki, install the Mod-Loader Plugin, <https://evanbalster.com/tiddlywiki/formulas.html#Mod-Loader%20Plugin> follow the instructions, import the tiddler above and it will work. But only the point rule and not the blanks rule. I have found an error in the "Mod-Loader Plugin", so I can't publish a draggable plugin currently yet. Regards Cd.K On Thursday, September 26, 2019 at 12:33:44 AM UTC+2, TonyM wrote: > > CdK > > Thanks so much for that. I will test today. I started to modify this > tiddler myself in an attempt to achieve this but did not succeed. > > I am keen to test your trailing blank idea. I presume this means a space > just before a line break. Or a space at the end of a paragraph results in a > forced line break? > > With a working example perhaps we can put an argument to include it in the > standard distribution even if they were rules that are off by default. > > Regards > Tony > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4a64ecbb-6865-43e4-9c5b-d1ba388f7ed1%40googlegroups.com.

