Hi Stephan

Yes, indeed, generalising the tilde so that it can be used to suppress any
wikitext rule is the proposal we discussed on the hangout. It's definitely
an interesting idea, and needs thinking through and fleshing out. The
double tilde idea would clash with the existing strike through formatting.

Anyhow, I do think that in the particular use case that prompted the
discussion it would make more sense to use backticks to suppress formatting
for the entire command line fragment, and to give it conventional
formatting.

Best wishes

Jeremy




On Wed, Oct 23, 2013 at 10:04 PM, Stephan Hradek
<[email protected]>wrote:

>
>
> Am Mittwoch, 23. Oktober 2013 17:50:04 UTC+2 schrieb PMario:
>
>>
>> We did discuss this topic yesterday at the hangout. see:
>> http://www.youtube.com/watch?**feature=player_detailpage&v=**
>> LEFadJ6Ls2Y#t=2626<http://www.youtube.com/watch?feature=player_detailpage&v=LEFadJ6Ls2Y#t=2626>
>>
>
> So if I understood correctly, using ~ as an escape character for the next
> "element" could be an option. If so, don't forget to make ~~ render as just
> one ~.
>
> I also took a look at the code today and I found that the ~ at the moment
> is coded into the parser for the links.
>
> If it's generalized, I think this would be much "cooler" as the parsers
> don't need to know about the ~ at all.
>
> My approach to this would be like this: Every parser gets an additional
> boolean parameter called "escaped". The parser always matches the same way
> regardless of what "escaped"'s value is. When it comes to returning its
> result, and "escaped" is "true", always a text object with the text being
> just what it matched is returned. If "escaped" is false (or missing?) the
> parser returns what it is already returning now.
>
> So before calling the parsers, a check needs to be done, whether or not we
> have a single ~. If so, escaped will be set to true.
>
> Does this sound reasonable?
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to