MarkDown 파일 Html로 변경하기
파일명.md 로 작성된 파일을 html 파일로 컨버팅하는 방법이다.
Centos 환경에서 변경하는 과정을 설명한다.
1. pandoc 설치
```
# yum repolist
# rpm -qa epel-release
# yum list epel-release
# yum install epel-release
# rpm -qa epel-release
# yum list installed epel-release
# yum repolist
# yum install pandoc
```
2. 다른 종류의 파일로 떨구기
-
HTML로 변환
# pandoc spring-boot.md -f markdown -t html -s -o test1.html
-
MS WORD(docx) 로 변환
# pandoc test1.md -f markdown -t docx -s -o test1.docx
-
Asciidoc 변환
# pandoc -o security-basic.asciidoc security-basic.md
3. html 파일로 떨굴 때 title 관련 에러 발생 시
- 파일 상단에 아래 내용 붙여주기
---
title: "타이틀"
output:
html_document:
toc: yes
pagetitle: 타이틀
---
Author And Source
이 문제에 관하여(MarkDown 파일 Html로 변경하기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@pcsnms/MarkDown-파일-Html로-변경하기저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)