Can't produce Table of Contents

JCL's Avatar

JCL

24 Feb, 2016 12:12 PM

My plain text file is as follows:

{{TOC}}
#1#
##11##
###111###
#2#

And after I convert it to HTML file, I get:

{{TOC}}
1
11
111
2

So I cant make the TOC. HAHA.

Please help me.....

  1. Support Staff 1 Posted by fletcher on 24 Feb, 2016 02:04 PM

    fletcher's Avatar

    You have to be using a version of MultiMarkdown >= 4.7.

    Your sample works just fine in versions of MMD that support the
    `{{TOC}}` syntax.

    Latest versions are here:

    https://github.com/fletcher/MultiMarkdown-5/releases

    F-

  2. 2 Posted by JCL on 25 Feb, 2016 02:46 PM

    JCL's Avatar

    Oh, thank you very much.

    I use the right version 5.1.0, but I think I have found where is the point.
    I typed "markdown 1.txt" or "multimark down 1.txt" in the command line tool, and got the wrong result.
    But when I type "multimarkdown 1.txt > 1.html", I get the right result.

    Thank you very much, Fletcher.

  3. Support Staff 3 Posted by fletcher on 25 Feb, 2016 03:15 PM

    fletcher's Avatar

    If you installed markdown via the MultiMarkdown installer, it runs MultiMarkdown in compatibility mode. This causes it to run without any special extensions.

    Glad it's working!

    Fletcher

    Sent from my iPhone

  4. fletcher closed this discussion on 02 Dec, 2017 01:55 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

08 Dec, 2018 08:58 PM
14 Nov, 2018 04:54 AM
09 Nov, 2018 04:49 PM
09 Nov, 2018 04:46 PM
09 Nov, 2018 04:44 PM

Recent Articles