tag:support.fletcherpenney.net,2013-02-12:/discussions/suggestions/169-could-you-put-toc-in-metadataMultiMarkdown: Discussion 2016-03-02T02:51:35Ztag:support.fletcherpenney.net,2013-02-12:Comment/362807002015-03-14T13:13:37Z2015-03-14T13:13:37ZCould you put {{TOC}} in Metadata?<div><p>Between existing features, there is already the ability to do
this -- you can use file transclusion to specify
<code>{{TOC}}</code> only in certain formats, or the approach that
you used above.</p>
<p>In general, I don't want to make MMD any more complex than it
already is, but rather make use of the current features to
implement customizations.</p></div>fletchertag:support.fletcherpenney.net,2013-02-12:Comment/362807002015-03-14T22:39:41Z2015-12-24T04:21:19ZCould you put {{TOC}} in Metadata?<div><p>Thanks. The file transclusion feature is a nice suggestion.</p>
<p>However, it doesn't quite work for me. It will turn my .tex file
having <code>\</code> into <code>\textbackslash</code></p>
<p>Another problem is I don't understand why when I use
<code>.*</code>, transclusion to <code>.tex</code> works fine, but
not <code>.html</code>. Another related question is I don't know
what to put in the <code>.html</code>.</p>
<p>This?</p>
<pre>
<code>**Table of Contents**
{{TOC}}</code>
</pre>
<p>But I'm not sure if it will treat it like mmd code or html
code...</p>
<p>In general, I find the file transclusion feature intriguing. But
the documentation on this is very limited and vague. I think it
would be better if, say, it has some example in the mmd
gallery.</p></div>Kolentag:support.fletcherpenney.net,2013-02-12:Comment/362807002015-03-16T13:15:14Z2015-03-16T13:15:14ZCould you put {{TOC}} in Metadata?<div><p>File transclusion is very simple -- it replaces {{foo}} with
the<br>
contents of the file to create a single MMD document. That's
it.</p>
<p>Everything is still treated as MultiMarkdown, it's just divided
amongst<br>
multiple files.</p>
<p>F-</p></div>fletcher