TW5: links and Markdown plugin

668 views
Skip to first unread message

Chris Lott

unread,
Jan 9, 2014, 2:51:37 PM1/9/14
to tiddl...@googlegroups.com
I'm using the Markdown plugin from here:
http://tiddlywiki.com/markdowndemo.html

Text formatting works fine...but how can I link to other Tiddlers?

CamelCase links don't appear to work.

I thought a syntax like:
[Music to Look For](#Music to Look For)

would work, but while it looks and is (copies) exactly the same as if I right-click on the navigation link to that Tiddler:

file:///Users/chris/Dropbox/tmp/tid5/index.html#Music%20to%20Look%20For

in the sidebar, it doesn't work in the Tiddler, though it does from the sidebar...




Jeremy Ruston

unread,
Jan 9, 2014, 4:36:32 PM1/9/14
to TiddlyWiki
Hi Chris

Wiki links in markdown text are not supported yet, and there's no straightforward way to create them.

The rough idea I had was to postprocess the HTML generated by the markdown plugin to convert links #links into wiki links, which would mean that you'd use exactly the syntax you guessed.

Best wishes

Jeremy.



--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

João Bolila

unread,
Jan 9, 2014, 4:47:52 PM1/9/14
to tiddl...@googlegroups.com
Hi Jeremy,

probably here we gonna have some clash between plugins, for example the
codeblock if I use the markedown and is executed before the highlight
plugin the code won't be highlighted. Do you have any idea of how to
address this?

ps: my pull request have de codeblock as widget and the updated
highlight.js (version 8.0) preview here http://bolila.tiddlyspot.com/


regards,

Joao Bolila
> <mailto:tiddlywiki%2Bunsu...@googlegroups.com>.
> To post to this group, send email to tiddl...@googlegroups.com
> <mailto:tiddl...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> --
> Jeremy Ruston
> mailto:jeremy...@gmail.com <mailto:jeremy...@gmail.com>
>
> --
> 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+...@googlegroups.com.
> To post to this group, send email to tiddl...@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/groups/opt_out.

--
PGP: 0xD39BB7C9
853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9

signature.asc

Jeremy Ruston

unread,
Jan 9, 2014, 5:15:14 PM1/9/14
to TiddlyWiki
On Thu, Jan 9, 2014 at 9:47 PM, João Bolila <jo...@bolila.com> wrote:
probably here we gonna have some clash between plugins, for example the
codeblock if I use the markedown and is executed before the highlight
plugin the code won't be highlighted. Do you have any idea of how to
address this?

The markdown plugin is implemented as a parser in TW5. There's no general mechanism currently that would enable the highlight plugin to post process the HTML that it generates. I think we'd have to modify the markdown plugin to explicitly convert HTML code blocks into highlight widget invocations.

ps: my pull request have de codeblock as widget and the updated
highlight.js (version 8.0) preview here http://bolila.tiddlyspot.com/

Thanks, and apologies; I'm catching up on a backlog of work but will deal with it soon.

Best wishes

Jeremy.

Tommy McGlynn

unread,
Oct 7, 2015, 6:13:47 PM10/7/15
to TiddlyWiki, jeremy...@gmail.com
Any progress here? Thanks.

Jeremy Ruston

unread,
Oct 7, 2015, 6:19:36 PM10/7/15
to Tommy McGlynn, TiddlyWiki
Hi Tommy

The issue has been discussed this week over on GitHub:


Best wishes

Jeremy.
Reply all
Reply to author
Forward
0 new messages