Skip to content

Instantly share code, notes, and snippets.

@K4zuki
Last active June 3, 2017 01:19
Show Gist options
  • Save K4zuki/df3d3a3ee433297ec78e43ae863dfd28 to your computer and use it in GitHub Desktop.
Save K4zuki/df3d3a3ee433297ec78e43ae863dfd28 to your computer and use it in GitHub Desktop.
markdown-preview-enhanced front matter sample to use pandoc

for HTML output:

output:
  custom_document:
    path: output.html    
    pandoc_args: [    
    "--self-contained",
    # "--number-sections", # if you like it numbered
    # "--reference-docx=/Full/Path/To/Reference.docx",
    "-M","css=/Full/Path/To/github.css",    
    "--read=markdown+east_asian_line_breaks+emoji",    
    "--toc",    
    "-t","html"
    ]

for DOCX output:

output:
  custom_document:
    path: output.docx
    pandoc_args: [
    "--self-contained",
    # "--number-sections", # this does not work with docx
    "--reference-docx=/Full/Path/To/Reference.docx",
    # "-M","css=/Full/Path/To/github.css",
    "--read=markdown+east_asian_line_breaks+emoji",
    # "--toc",
    "-t","docx"  
    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment