mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Only style ordered list with dl.message-properties
This commit is contained in:
parent
c0a256306b
commit
aa1721ab3d
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user