mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +00:00 
			
		
		
		
	 8aa558eb2c
			
		
	
	8aa558eb2c
	
	
	
		
			
			* remove blks first try * dprint.json seems to be OK, some forgotten functions * add some more space-after-keyword settings * server remove blks * add **/files to dprint exclude * dprint.js fixes a typo * add boot.js and bootprefix.js to dprint exclude * dprint change dprint.json * add dprint fmt as script * remove jslint comments * fix whitespace * fix whitespace * remove function-wrapper from geospatial plugin * fix whitespace * add function wrapper to dyannotate-startup * remove dpring.json
		
			
				
	
	
		
			32 lines
		
	
	
		
			894 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			894 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /*\
 | |
| title: $:/core/modules/parsers/textparser.js
 | |
| type: application/javascript
 | |
| module-type: parser
 | |
| 
 | |
| The plain text parser processes blocks of source text into a degenerate parse tree consisting of a single text node
 | |
| 
 | |
| \*/
 | |
| 
 | |
| "use strict";
 | |
| 
 | |
| var TextParser = function(type,text,options) {
 | |
| 	this.tree = [{
 | |
| 		type: "genesis",
 | |
| 		attributes: {
 | |
| 			$type: {name: "$type", type: "string", value: "$codeblock"},
 | |
| 			code: {name: "code", type: "string", value: text},
 | |
| 			language: {name: "language", type: "string", value: type},
 | |
| 			$remappable: {name: "$remappable", type:"string", value: "no"}
 | |
| 		}
 | |
| 	}];
 | |
| 	this.source = text;
 | |
| 	this.type = type;
 | |
| };
 | |
| 
 | |
| exports["text/plain"] = TextParser;
 | |
| exports["text/x-tiddlywiki"] = TextParser;
 | |
| exports["application/javascript"] = TextParser;
 | |
| exports["application/json"] = TextParser;
 | |
| exports["text/css"] = TextParser;
 | |
| exports["application/x-tiddler-dictionary"] = TextParser;
 |