1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00

feat: import base type

This commit is contained in:
linonetwo 2024-09-12 13:57:44 +08:00
parent 24279cca6a
commit e3fc9b4d33
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
/*\
title: $:/core/modules/parsers/base.js
type: application/javascript
module-type: library
\*/
/**
* Base structure for a parse node
*

View File

@ -1051,7 +1051,7 @@ exports.initParsers = function(moduleType) {
* @param {string} [options.defaultType="text/vnd.tiddlywiki"] - Default type to use if no parser is found for specified type
* @param {boolean} [options.configTrimWhiteSpace=false] - If true, trims white space according to configuration
*
* @returns {Parser|null} Parser instance or null if no parser is found
* @returns {Parser | null} Parser instance or null if no parser is found
*/
exports.parseText = function(type,text,options) {
text = text || "";