mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
feat: two example getText handler
This commit is contained in:
parent
8a12498fa9
commit
09c2e71e22
@ -57,4 +57,8 @@ exports.parse = function() {
|
|||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.getText = function(tree) {
|
||||||
|
return "\n```" + tree.attributes.language.value + "\n" + tree.attributes.code.value + "\n```\n";
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
@ -31,4 +31,8 @@ exports.parse = function() {
|
|||||||
return [{type: "element", tag: "hr"}];
|
return [{type: "element", tag: "hr"}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.getText = function() {
|
||||||
|
return "---";
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user