kude
v1.0.0
Published
Kude is an alternative to markdown
Downloads
2
Readme
Kude
Installation
- CLI:
npm install -g kude
- In-browser:
npm install kude
Usage
CLI
$ kude
Input any kude text (type .exit to exit):
#! my title
<div class="kuder"><h1 class="center">my title</h1></div>
.exit
$ kude '#! my title'
<div class="kuder"><h1 class="center">my title</h1></div>
$ echo '#! my title' > ./test.kude
$ kude -f ./test.kude
<div class="kuder"><h1 class="center">my title</h1></div>
Browser
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/lib/kuder.css" />
<script src="https://unpkg.com/[email protected]/lib/kuder.js"></script>
</head>
<body>
<div id="content"></div>
<script>
document.getElementById('content').innerHTML =
kuder('#! Kude in the browser\n\nRendered by *kuder*.');
</script>
</body>
</html>
License
Copyright (c) 2019-2020, [email protected] (MIT License)