-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.js
More file actions
22 lines (16 loc) · 900 Bytes
/
Copy pathexample.js
File metadata and controls
22 lines (16 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var Remarkable = require('remarkable');
var furi = require('./index.js');
// Create a new markdown object
var md = new Remarkable();
// register our plugin, using both syntaxes
md.use(furi, {'single': true, 'bracket': true});
// Here we use all fat bracket from my IME
console.log(md.render("{我身}(わがみ)の事(こと)、ありの侭(まま)に申(もう)すべし"));
// Here we yse all ascii 'skinny' brackets
console.log(md.render("{現代的}(げんだいてき)なさま"));
console.log(md.render("Here is how not to do it: {駄目}(だめ)"));
// ^ ^^ ^
// | | |
// Fat skinny \
// fat again
// *Don't do this!