Skip to content

Repository files navigation

mdcompile

Compile Markdown files with footnotes, indexed terms and references to DOCX or PDF book.

usage: todocx [-h] [-r REFERENCES] [-l {sv-SE,en-GB,en-US}] [-t TOC_LEVEL]
              [-b PAGE_BREAK_LEVEL] [-n TEXT_NUMBER_LEVEL] [--no-comments]
              [-f {book,chapter,text}] [-p] [-d]
              [filename]

positional arguments:
  filename              Main Markdown file to convert. Default 'main.md'.

options:
  -h, --help            show this help message and exit
  -r REFERENCES, --references REFERENCES
                        Directory containing the references YAML files.
                        Default: Environment variable REFERENCES if defined,
                        else './references'.
  -l {sv-SE,en-GB,en-US}, --language {sv-SE,en-GB,en-US}
                        Language specification. Default 'sv-SE'.
  -t TOC_LEVEL, --toc-level TOC_LEVEL
                        Level for display in table of contents. Default 1.
  -b PAGE_BREAK_LEVEL, --page-break-level PAGE_BREAK_LEVEL
                        Level at which to break for a new page. Default 1.
  -n TEXT_NUMBER_LEVEL, --text-number-level TEXT_NUMBER_LEVEL
                        Level at which to output the number of the text.
                        Default 1.
  --no-comments         Do not output comments.
  -f {book,chapter,text}, --footnotes-location {book,chapter,text}
                        Location of footnotes. Default 'text'.
  -p, --paragraph-numbers
                        Output consecutive number for each paragraph.
  -d, --debug           Debug mode; output Markdown AST to JSON file.

About

Compile Markdown files with footnotes, indexed terms and references to DOCX, PDF book or article.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages