Dai un'occhiata alla pagina demo per vedere contrassegnati in azione ⛹️
Anche le nostre pagine di documentazione sono renderizzate usando il segno 💯
CLI: npm install -g marked
Nel browser: npm install marked --save
CLI
1
2
3
4
5$ marked -o hello.html
hello world
^D
$ cat hello.html
<p>hello world</p>
Browser
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. (Licenza MIT)