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

View File

@ -57,4 +57,8 @@ exports.parse = function() {
}]; }];
}; };
exports.getText = function(tree) {
return "\n```" + tree.attributes.language.value + "\n" + tree.attributes.code.value + "\n```\n";
}
})(); })();

View File

@ -31,4 +31,8 @@ exports.parse = function() {
return [{type: "element", tag: "hr"}]; return [{type: "element", tag: "hr"}];
}; };
exports.getText = function() {
return "---";
}
})(); })();