You mean "a one way ticket"? Where the content of a tiddler is permanently
changed, Once, forever?
Yes?
On Tuesday, 12 May 2020 10:51:59 UTC+2, Tony K wrote:
>
>
> (function(){
>
> /*jslint node: true, browser: true */
> /*global $tw: false */
> "use strict";
>
> exports.name = "myrule";
> exports.types = {block: true};
>
> exports.init = function(parser) {
> this.parser = parser;
> // Regexp to match
> this.matchRegExp = /-{3,}\r?(?:\n|$)/mg;
> };
>
> exports.parse = function() {
> // Move past the match
> this.parser.pos = this.matchRegExp.lastIndex;
> return [{type: "element", tag: "hr"}];
> };
>
> })();
>
> this is the code of horiz rule of TW parser
>
> I am using it to try to learn.
>
> anyway when you enter --- it substitute that with hr but not in the
> original tiddler
>
> how can i modify the code so that the actual --- is replaced by hr in the
> tiddler??
>
> thank you
>
--
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/4c0ec839-b78a-42b7-a2eb-5ee6177bc06e%40googlegroups.com.