-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
34 lines (33 loc) · 707 Bytes
/
Copy pathindex.js
File metadata and controls
34 lines (33 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* @author Gilles Coomans <gilles.coomans@gmail.com>
*
* kroked : markdown with macros.
*
* Based on marked lexer/parser (https://github.com/chjj/marked).
*
* Added in marked : block and inline macros with multiple directives management.
*
*
* {% directive1(arg1, arg2) directive2(arg3, ..., ...) ...
* content ...
* %}
*
* or
* {! directive1(...) directive2(...) ...
* raw content...
* !}
*
* or (inline or block level)
* @.directive(arg, ...)
*
* or (inline or block level)
* {{ path.to.property }}
*
*/
if (typeof define !== 'function') {
var define = require('amdefine')(module);
}
define(["require", "./lib/makro"],
function(require, makro){
return makro;
});