Tiddlywiki5: Supporting macros in Markdown

Created on 7 Jun 2017  路  5Comments  路  Source: Jermolene/TiddlyWiki5

I don't believe you can call out to macros in the markdown document; it just renders the macro call as plain text, e.g. <> just appears as is, without calling out to "mymacro". (Maybe this is do to text escaping rather than not calling macros, I don't know.) Can running the content through all the macros processing be added?

Most helpful comment

@pmario Yeah, I don't think there is... but the spec does allow embedding raw HTML (e.g. <foo/>), and considering that this markdown plugin exists within tiddlywiki it would make sense (at least to me) for it to support macro expansion (an important feature of TW)?

Is there perhaps an easy workaround where the output of the markdown plugin is just piped through the macro processor before displaying? (I don't know how to do this in TW but presumably its possible?)

All 5 comments

markdown isn't tw-wikitext. ... And so far as I can see, there is no macro spec in the markdown spec. see: http://commonmark.org/ ..

@pmario Yeah, I don't think there is... but the spec does allow embedding raw HTML (e.g. <foo/>), and considering that this markdown plugin exists within tiddlywiki it would make sense (at least to me) for it to support macro expansion (an important feature of TW)?

Is there perhaps an easy workaround where the output of the markdown plugin is just piped through the macro processor before displaying? (I don't know how to do this in TW but presumably its possible?)

TFM ;-)

As discussed in #4610 the new markdown plugin can be configured to allow syntax such as macros to work in Markdown tiddlers.

@Jermolene I suggest that we can close this issue.

Thanks @saqimtiaz

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saqimtiaz picture saqimtiaz  路  5Comments

rmunn picture rmunn  路  4Comments

saqimtiaz picture saqimtiaz  路  5Comments

KendrickLamarck picture KendrickLamarck  路  4Comments

AnthonyMuscio picture AnthonyMuscio  路  4Comments