embedding .md (markdown) files?

177 views
Skip to first unread message

Shay Shaked

unread,
Jan 8, 2018, 5:56:44 AM1/8/18
to TiddlyWiki
I asked something similar before, about writing md directly into TW -- but this is not really useful, considering how much more complete (imo) TW text is. 

OK, now question becomes this: I like embedding certain files inside my journal tiddlers for the week, which include a project list, etc. I still write many texts on my phone using markdown. Is there a way to embed them directly into a tiddler? For now, I print as PDF and embed this -- not too bad, but this means I can't make changes. I have to go back to the original file and print again. 

Suggestions? Thanks! 

PMario

unread,
Jan 8, 2018, 7:13:56 AM1/8/18
to TiddlyWiki
On Monday, January 8, 2018 at 11:56:44 AM UTC+1, Shay Shaked wrote:
I asked something similar before, about writing md directly into TW -- but this is not really useful, considering how much more complete (imo) TW text is. 

There are plugins, to use markdown within TW.

tiddlywiki/markdown  ... uses markdown-js library and can be installed with the built in plugin-library mechanism.

wikilabs/markdown-it ... uses the markdown-it library and can be installed using the link.

...but this is not really useful,

You'll need to be a little bit more specific about, what you try to achieve with MD, that can't be done with the existing possibilities.
If you don't let us know, how should we be able to fix it ;)

have fun!
mario

Shay Shaked

unread,
Jan 8, 2018, 7:41:00 AM1/8/18
to TiddlyWiki
pmariojo,

I'm aware of the plug-in, but I don't want to use MD to write tiddlers; I want to have MD files embedded in another tiddler, as you could do with PDFs or CSV files. 

This I do by creating a tiddler that contains the PDF, embedded, and then have this tiddler inside my general journal tiddler, if this makes sense. 

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/-YzhUaUmY5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b6b91b40-adff-4a52-b72e-df9cac5c7103%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

@TiddlyTweeter

unread,
Jan 8, 2018, 7:51:57 AM1/8/18
to TiddlyWiki

MD source is plain text. If you embed that its the raw plain text you'd see. Maybe I'm misunderstanding you?

Best wishes
Josiah

Shay Shaked

unread,
Jan 8, 2018, 8:03:02 AM1/8/18
to TiddlyWiki
That's an interesting point. When you use MD, the output us formatted - however, this formatted form is usually a "a preview" of the software you use (in my case, Typora) or . HTML 

MD in itself has no real "look" for a better term. 

I guess then, the question becomes, can I have TW "understand" MD and display it in respect to markdown rules? Just as it would display HTML embedding? 

Why not just submit HTML then, you may ask? Because I use MD in tempora, and "printing" to HTML is making it a final product, meaning, I can't go into the HTML and edit it again in MD; now it's HTML. 

Hmm. So this is an interesting turn. Need to think in different terms. 

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/-YzhUaUmY5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

@TiddlyTweeter

unread,
Jan 8, 2018, 8:09:42 AM1/8/18
to TiddlyWiki
Right. As far as I understand it you need ...

1 - Embed the rendered HTML

or ...

2 - Put the raw plain text MD into a tiddler with a Content Type that can render it correctly.

Best wishes
Josiah


On Monday, 8 January 2018 14:03:02 UTC+1, Shay Shaked wrote:
That's an interesting point. When you use MD, the output us formatted - however, this formatted form is usually a "a preview" of the software you use (in my case, Typora) or . HTML 

MD in itself has no real "look" for a better term. 

I guess then, the question becomes, can I have TW "understand" MD and display it in respect to markdown rules? Just as it would display HTML embedding? 

Why not just submit HTML then, you may ask? Because I use MD in tempora, and "printing" to HTML is making it a final product, meaning, I can't go into the HTML and edit it again in MD; now it's HTML. 

Hmm. So this is an interesting turn. Need to think in different terms. 
On Jan 8, 2018 07:52, "@TiddlyTweeter" <tiddly...@assays.tv> wrote:

MD source is plain text. If you embed that its the raw plain text you'd see. Maybe I'm misunderstanding you?

Best wishes
Josiah


On Monday, 8 January 2018 11:56:44 UTC+1, Shay Shaked wrote:
I asked something similar before, about writing md directly into TW -- but this is not really useful, considering how much more complete (imo) TW text is. 

OK, now question becomes this: I like embedding certain files inside my journal tiddlers for the week, which include a project list, etc. I still write many texts on my phone using markdown. Is there a way to embed them directly into a tiddler? For now, I print as PDF and embed this -- not too bad, but this means I can't make changes. I have to go back to the original file and print again. 

Suggestions? Thanks! 

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/-YzhUaUmY5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Mark S.

unread,
Jan 8, 2018, 9:41:30 AM1/8/18
to TiddlyWiki
This seems to work:

<$wikify type="text/x-markdown" name="md" output="html" text={{MarkdownExample}}>
<
<md>>
</$wikify>

Where text is replaced with your markdown tiddler you want embedded. This will render the markdown even if the original text wasn't identified as markdown. Of course you have to have md plugin installed.

-- Mark


On Monday, January 8, 2018 at 5:03:02 AM UTC-8, Shay Shaked wrote:
That's an interesting point. When you use MD, the output us formatted - however, this formatted form is usually a "a preview" of the software you use (in my case, Typora) or . HTML 

MD in itself has no real "look" for a better term. 

I guess then, the question becomes, can I have TW "understand" MD and display it in respect to markdown rules? Just as it would display HTML embedding? 

Why not just submit HTML then, you may ask? Because I use MD in tempora, and "printing" to HTML is making it a final product, meaning, I can't go into the HTML and edit it again in MD; now it's HTML. 

Hmm. So this is an interesting turn. Need to think in different terms. 
On Jan 8, 2018 07:52, "@TiddlyTweeter" <tiddly...@assays.tv> wrote:

MD source is plain text. If you embed that its the raw plain text you'd see. Maybe I'm misunderstanding you?

Best wishes
Josiah


On Monday, 8 January 2018 11:56:44 UTC+1, Shay Shaked wrote:
I asked something similar before, about writing md directly into TW -- but this is not really useful, considering how much more complete (imo) TW text is. 

OK, now question becomes this: I like embedding certain files inside my journal tiddlers for the week, which include a project list, etc. I still write many texts on my phone using markdown. Is there a way to embed them directly into a tiddler? For now, I print as PDF and embed this -- not too bad, but this means I can't make changes. I have to go back to the original file and print again. 

Suggestions? Thanks! 

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/-YzhUaUmY5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Shay Shaked

unread,
Jan 8, 2018, 10:52:48 AM1/8/18
to TiddlyWiki
Thanks Mark. I think I know which plugin, but would you be kind enough to point me to it again so there are no mistakes? 

Thank you. 

To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Mark S.

unread,
Jan 8, 2018, 11:00:03 AM1/8/18
to TiddlyWiki
Well, the one I used was here: https://tiddlywiki.com/plugins/tiddlywiki/markdown/

-- Mark

Shay Shaked

unread,
Jan 8, 2018, 11:07:06 AM1/8/18
to TiddlyWiki
Thanks!

So, install the plugin, and then the embedding should work. I will try it out. 

To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Shay Shaked

unread,
Jan 8, 2018, 5:41:25 PM1/8/18
to TiddlyWiki
Doesn't work for me. I put it as indicated in the tiddler body and I can't see my file. I tried to embedding, same way I'd do with PDF, same result. Path should be correct. What am I missing?

BJ

unread,
Jan 9, 2018, 4:59:50 AM1/9/18
to TiddlyWiki
browsers do not understand markdown, eg for chrome you must install a browser extension eg Markdown Preview Plus then you can embedd using an iframe EG

<iframe src="file:///yourdirpath/README.md"/>

all the best
BJ

Eskha

unread,
Jan 10, 2018, 10:34:05 AM1/10/18
to TiddlyWiki
Hi Shay,

Not sure, I have fully understood your use case but there is the following option.

You can install the Marked plugin.
(bjtools.tiddlyspot.com/#%24%3A%2Fplugins%2Fbj%2Fplugins%2Fmarked)

Then:
1. Import your .md file in your tiddlywiki (by simply dropping it)
2. Set it's "type" field to "text/x-marked"

Best regards

Eskha

Reply all
Reply to author
Forward
0 new messages