1
0
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:
lin onetwo 2024-06-13 01:25:23 +08:00
parent 8a12498fa9
commit 09c2e71e22
2 changed files with 8 additions and 0 deletions
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 "---";
}
})();