-
-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathasciidoctor-data-line.js
56 lines (47 loc) · 2.16 KB
/
asciidoctor-data-line.js
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* Generated by Opal 0.8.0 */
Opal.modules["image-data-line-treeprocessor/extension"] = function (Opal) {
Opal.dynamic_require_severity = "ignore";
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $hash2 = Opal.hash2;
if ($scope.get('RUBY_ENGINE')['$==']("opal")) {
}
;
self.$include(Opal.get('Asciidoctor'));
return (function ($base, $super) {
function $MapperTreeprocessor() {
};
var self = $MapperTreeprocessor = $klass($base, $super, 'MapperTreeprocessor', $MapperTreeprocessor);
var def = self.$$proto, $scope = self.$$scope;
return (def.$process = function (document) {
var self = this;
if (document._is_nil("apply-data-line"))
return document;
try {
document.$find_by().forEach(function (node) {
node._line_number(function (lineno) {
node['$add_role']("data-line-" + lineno);
//node._set_attribute("role", "data-line-" + lineno);
});
});
}
catch (e) {
// doesn't apply data-line for labeled list
}
return document;
}, nil) && 'process'
})(self, (($scope.get('Extensions')).$$scope.get('Treeprocessor')));
};
/* Generated by Opal 0.8.0 */
Opal.modules["image-data-line-treeprocessor"] = function (Opal) {
Opal.dynamic_require_severity = "ignore";
var $a, $b, TMP_1, self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice;
if ($scope.get('RUBY_ENGINE')['$==']("opal")) {
self.$require("image-data-line-treeprocessor/extension")
}
;
return ($a = ($b = $scope.get('Extensions')).$register, $a.$$p = (TMP_1 = function () {
var self = TMP_1.$$s || this;
return self.$treeprocessor($scope.get('MapperTreeprocessor'))
}, TMP_1.$$s = self, TMP_1), $a).call($b);
};
Opal.require('image-data-line-treeprocessor');
Opal.require('image-data-line-treeprocessor/extension');