두드러진
- ⚡ 속도를 위한 제작
- ⬇️ 장시간 동안 캐싱 또는 차단 없이 마크다운을 구문 분석하기 위한 저수준 컴파일러
- ⚖️ 지원되는 맛 및 사양의 모든 마크다운 기능을 구현하면서 경량화
- 🌐 브라우저, 서버 또는 명령줄 인터페이스(CLI)에서 작동
데모
표시된 작업을 보려면 데모 페이지를 확인하세요 ⛹️
문서
설명서 페이지 도 💯 표시를 사용하여 렌더링됩니다.
설치
CLI: npm install -g marked
브라우저 내: npm install marked --save
용법
CLI
1
2
3
4
5$ marked -o hello.html
hello world
^D
$ cat hello.html
<p>hello world</p>
브라우저
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Marked in the browser</title>
</head>
<body>
<div id="content"></div>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
document.getElementById('content').innerHTML =
marked('# Marked in the browser\n\nRendered by **marked**.');
</script>
</body>
</html>
특허
Copyright (c) 2011-2018, Christopher Jeffrey.(MIT 라이선스)