Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Convert to Markdown

Aaron Wolen edited this page Aug 20, 2020 · 2 revisions

A few notes on converting notebooks to Markdown suitable for importing to GitBook.

pandoc \
  -fipynb \
  -tmarkdown-raw_html-native_divs-fenced_divs \
  --ipynb-output=all \
  --atx-headers \
  genomics/02-vcf-python.ipynb -o 02-vcf-python.md
  • setting --ipynb-output to all causes Pandas dataframes to be included as both HTML tables and plain text code blocks. Since GitBook doesn't understand HTML, the HTML tables should be deleted.
  • Disabling the div and raw html extensions removes the fenced divs containing cell metadata.
Clone this wiki locally