mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	clean up temp enable flag
This commit is contained in:
		| @@ -22,7 +22,6 @@ RED.utils = (function() { | ||||
|         return renderMarkdown(txt); | ||||
|     } | ||||
|  | ||||
|     let enable = true; | ||||
|     const descriptionList = { | ||||
|         name: 'descriptionList', | ||||
|         level: 'block',                                     // Is this a block-level or inline-level tokenizer? | ||||
| @@ -52,11 +51,11 @@ RED.utils = (function() { | ||||
|         name: 'description', | ||||
|         level: 'inline',           // Is this a block-level or inline-level tokenizer? | ||||
|         start(src) { | ||||
|             if (!enable) return null | ||||
|             if (!src) return null | ||||
|             src.match(/:/)?.index; // Hint to Marked.js to stop and check for a match | ||||
|         }, | ||||
|         tokenizer(src, tokens) { | ||||
|             if (!enable) return null; | ||||
|             if (!src) return null; | ||||
|             const rule = /^:([^:\n]+)\(([^:\n]+)\).*?:([^:\n]*)(?:\n|$)/;  // Regex for the complete token | ||||
|             const match = rule.exec(src); | ||||
|             if (match) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user