catvayor
7ac02ac5af
All checks were successful
Check meta / check_meta (pull_request) Successful in 19s
Check meta / check_dns (pull_request) Successful in 19s
Check workflows / check_workflows (pull_request) Successful in 25s
Check workflows / check_workflows (push) Successful in 28s
Run pre-commit on all files / pre-commit (push) Successful in 55s
Build all the nodes / ap01 (pull_request) Successful in 1m5s
Build all the nodes / geo02 (pull_request) Successful in 1m59s
Build all the nodes / geo01 (pull_request) Successful in 2m10s
Build all the nodes / bridge01 (pull_request) Successful in 2m17s
Build all the nodes / hypervisor01 (pull_request) Successful in 1m52s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m41s
Build all the nodes / netcore02 (pull_request) Successful in 37s
Build all the nodes / compute01 (pull_request) Successful in 3m6s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m48s
Build all the nodes / rescue01 (pull_request) Successful in 2m14s
Build all the nodes / vault01 (pull_request) Successful in 2m4s
Build all the nodes / storage01 (pull_request) Successful in 2m7s
Build all the nodes / web02 (pull_request) Successful in 1m41s
Build the shell / build-shell (pull_request) Successful in 30s
Build all the nodes / web01 (pull_request) Successful in 2m17s
Run pre-commit on all files / pre-commit (pull_request) Successful in 39s
Build all the nodes / web03 (pull_request) Successful in 1m44s
25 lines
1.3 KiB
Diff
25 lines
1.3 KiB
Diff
From b0f6c845280bee20bcc28a136436e000bde8a457 Mon Sep 17 00:00:00 2001
|
|
From: catvayor <catvayor@katvayor.net>
|
|
Date: Mon, 16 Dec 2024 11:25:38 +0100
|
|
Subject: [PATCH] feat: separate HTML description of MD description
|
|
|
|
---
|
|
static/js/script.js | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/static/js/script.js b/static/js/script.js
|
|
index d3ec223..5d9fc6e 100644
|
|
--- a/static/js/script.js
|
|
+++ b/static/js/script.js
|
|
@@ -188,7 +188,7 @@ var expandOption = function(el){
|
|
|
|
//console.log(currentSet[el].description.replace(/:::\ \{\.note\}(\s*([^:::]*))/gi ,'<div class="alert alert-info" role="alert">$1</div>').replace(/:::/,''));
|
|
|
|
- var elDesc = "<h5 style='margin:1em 0 0 0'>Description</h5><div>" + currentSet[el].description + "</div>";
|
|
+ var elDesc = "<h5 style='margin:1em 0 0 0'>Description</h5><div>" + currentSet[el].descriptionHTML + "</div>";
|
|
var elType = "<h5 style='margin:1em 0 0 0'>Type</h5><div>" + currentSet[el].type + "</div>";
|
|
//var elNote = ( currentSet[el].note == "" ? "": "<h5 style='margin:1em 0 0 0'>Note</h5><div>" + currentSet[el].note + "</div>");
|
|
var elDefault = ( currentSet[el].default == "" ? "" : "<h5 style='margin:1em 0 0 0'>Default</h5><div><pre style='margin-top:0.5em'>" + currentSet[el].default + "</pre></div>");
|
|
--
|
|
2.47.0
|
|
|