TW5 - Transclusion Issue? Did I do something wrong?

49 views
Skip to first unread message

RichShumaker

unread,
Jan 8, 2017, 4:12:13 PM1/8/17
to TiddlyWikiDev
I normally post at TiddlyWiki except this seemed like more of a DEV issue.

I came across this today.
I used Transclusion and for some reason the formatting did not stay the same.

Here is a permalink of what I did. The top Tiddler has a transclusion of the bottom Tiddler, and doesn't look the same.


Let me know if this is something old, something new, or something I just did wrong and need to redo.

Thanks everyone for all the help over the years and have an awesome day.

Rich Shumaker

Eric Shulman

unread,
Jan 8, 2017, 5:47:10 PM1/8/17
to TiddlyWikiDev
On Sunday, January 8, 2017 at 1:12:13 PM UTC-8, RichShumaker wrote:
I used Transclusion and for some reason the formatting did not stay the same.

Two solutions:

Your transclusion is being processed in "inline" mode.  As a result, the header syntax ("!!!"), which needs to be processed in "block" mode, is not being recognized

Two possible fixes:

1) Add another blank line between "Included Below" and "{{ Rich Shumaker }}".  This will cause the content from the transcluded tiddler to be processed as a separate block, which allows the header syntax to be handled properly.

Alternatively,

2) use the <$transclude> widget with the mode="block" param to explictly force block mode, regardless of surrounding whitespace
<$transclude tiddler="Rich Shumaker" mode="block" />


enjoy,
-e

Eric Shulman
TiddlyTools / ELS Design Studios
Inside TiddlyWiki: The Missing Manuals

rich shumaker

unread,
Jan 8, 2017, 6:46:39 PM1/8/17
to tiddly...@googlegroups.com
Worked Perfect by adding a line break.

Thank You Very Much.

Rich Shumaker

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywikidev/aRNYwyZp74M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywikidev+unsubscribe@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/2ad6954b-1a62-4b2e-a6c7-ea0b88f8b017%40googlegroups.com.

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

Reply all
Reply to author
Forward
0 new messages