I have created an integration for MarkDown today using it's js
implementation called ShowDown [1]. It does not use any tags to
trigger markdown, but instead allows you to use it inline.

What I couldn't figure out so far is the lookaheadRegExp that I need
for the TiddlyWiki formatter that triggers MarkDown, so that...
1) §§§ is followed by zero or more ignored blanks or newlines
2) then the MarkDown formatted content
3) terminated with zero or more ignored blanks or newlines followed by
§§§

xxx§§§
This works already
§§§yyy

xxx§§§this doesn't§§§yyy

One may argue if that made any sense to begin with, but well ...I am
not a biggie when it comes to regex's (yet) so it would still be nice
if there was anyone who could enlighten me as to how to change...

lookaheadRegExp: /§§§\s*((?:[^\n]*\n)+?)§§§/mg

...to the desired one described above. I have tried by omitting what
didn't seem required, yet this one doesn't work...

lookaheadRegExp: /§§§\s*(.)\s*§§§/mg

Cheers, Tobias.

[1} http://showdown.tiddlyspace.com/#ShowDown

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to