support for leanpub or book.txt?

James Shaw's Avatar

James Shaw

Feb 15, 2014 @ 03:48 PM

leanpub has each chapter in separate files, with book.txt keeping a list of the files. Can that be used by your TOC window, to show a TOC of the entire book at once?

  1. Support Staff 1 Posted by Fletcher on Feb 15, 2014 @ 10:55 PM

    Fletcher's Avatar

    Leanpub is separate from Markdown and MultiMarkdown, which is what
    MultiMarkdown Composer is designed for.

    MultiMarkdown does have support for file transclusion:

    http://fletcher.github.io/MultiMarkdown-4/transclusion

    This is a new feature for MultiMarkdown and has not been incorporated to
    Composer yet, but will be.

    The older version of this feature was the `mmd_merge` script, and is a
    bit more like the limited approach used in leanpub (e.g. requiring a
    master file to link other files together):

    https://github.com/fletcher/peg-multimarkdown/wiki/How-to-install-the-MMD-Support-Package-mmd_merge.pl-in-Windows

    Composer has support for mmd_merge built in. You open the master file
    (analogous to book.txt) and use the "Merge with mmd_merge" command to
    compile everything together into a single document.

    In either case, the TOC for Composer is based on the current file, not
    any transcluded files. If you want to see the TOC for the entire
    collection, you use the menu command to compile to a single document.

    Fletcher

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