mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Only style ordered list with dl.message-properties
This commit is contained in:
		@@ -84,15 +84,14 @@ RED.utils = (function() {
 | 
			
		||||
 | 
			
		||||
    //override list creation - add node-ports to order lists
 | 
			
		||||
    renderer.list = function (body, ordered, start) {
 | 
			
		||||
        let temp = body;
 | 
			
		||||
        if (enable && ordered) {
 | 
			
		||||
            temp = `<ol class="node-ports">${body}</ol>`;
 | 
			
		||||
        let addClass = /dl.*?class.*?message-properties.*/.test(body);
 | 
			
		||||
        if (addClass && ordered) {
 | 
			
		||||
            return '<ol class="node-ports">' + body + '</ol>';
 | 
			
		||||
        } else if (ordered) {
 | 
			
		||||
            temp = `<ol>${body}</ol>`;
 | 
			
		||||
            return '<ol>' + body + '</ol>';
 | 
			
		||||
        } else {
 | 
			
		||||
            temp = `<ul>${body}</ul>`;
 | 
			
		||||
            return '<ul>' + body + '</ul>'
 | 
			
		||||
        }
 | 
			
		||||
        return temp;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    window._marked.setOptions({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user