yes sir

On Tuesday, May 12, 2020 at 12:31:26 PM UTC+3, TiddlyTweeter wrote:
>
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/16a5161d-9eb8-4296-bbaa-4dc323ff33f5%40googlegroups.com.

Reply via email to