Markdown To Docx



vscode-pandoc

  


Pondoc

#--- source.md를 target.docx로 변환
pandoc  source.md  -f  markdown  -t  docx  -s  -c  obconStyle.css   -o  manual/files/target.docx

#--- source.md를 target.pdf로 변환
apt  install  texlive-xetex  librsvg2-bin  texlive-science
pandoc  source.md  --pdf-engine=xelatex  -o  manual/files/target.pdf
  • -f (--form) : Source 파일 포맷 - html, markdown, ...
  • -t (--to) : Target 파일 포맷 - html, markdown, ...
  • -s (--standalone) : 적당하게 문서의 header와 footer를 자동으로 생성 한다.
  • -c (-css) : CSS StyleSheet 파일명 (Default. epub.css)
  • -o (--output) : Target 파일명

 


Gitbook

 

Gitbook 폴더 구조

  • book.json : 설정 파일
  • README.md : 문서의 Header (필수)
  • SUMMARY.md : 목차
  • GLOSSARY.md : 용어 사전
  • chapter-1
    • README.md
    • ~.md
  • chapter-2
    • README.md
    • ~.md

 

#--- Gitbook 설치
npm  install  -g  gitbook-cli  gitbook
gitbook  -V

#--- 파일 변환
gitbook  pdf   ./  manual/files/target.pdf
gitbook  epub  ./  manual/files/target.epub
gitbook  mobi  ./  manual/files/target.mobi

 

Last modified, 2021.05.17 ~ 2021.05.17, version 0.01

최종 수정일: 2022-10-24 19:17:34

이전글 :
다음글 :
상단 menu
arrow_back_ios
arrow_forward_ios