mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-22 02:33:17 +00:00
feat: two example getText handler
This commit is contained in:
parent
8a12498fa9
commit
09c2e71e22
core/modules/parsers/wikiparser/rules
@ -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"}];
|
||||
};
|
||||
|
||||
exports.getText = function() {
|
||||
return "---";
|
||||
}
|
||||
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user