Keldos commited on
Commit
ae0274b
1 Parent(s): 1344244

chore: 控制台信息颜色改为绿色,移除控制台警告

Browse files
Files changed (1) hide show
  1. assets/custom.js +4 -4
assets/custom.js CHANGED
@@ -585,7 +585,7 @@ async function updateLatestVersion() {
585
  const data = await getLatestRelease();
586
  const releaseNote = data.body;
587
  if (releaseNote) {
588
- releaseNoteElement.innerHTML = marked.parse(releaseNote);
589
  }
590
  const latestVersion = data.tag_name;
591
  const latestVersionTime = (new Date(data.created_at)).getTime();
@@ -664,12 +664,12 @@ window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", adj
664
  // console suprise
665
  var styleTitle1 = `
666
  font-size: 16px;
667
- font-family: ui-monospace,monospace;
668
- color: rgb(244,167,89);
669
  `
670
  var styleDesc1 = `
671
  font-size: 12px;
672
- font-family: ui-monospace,monospace;
673
  `
674
  function makeML(str) {
675
  let l = new String(str)
 
585
  const data = await getLatestRelease();
586
  const releaseNote = data.body;
587
  if (releaseNote) {
588
+ releaseNoteElement.innerHTML = marked.parse(releaseNote, {mangle: false, headerIds: false});
589
  }
590
  const latestVersion = data.tag_name;
591
  const latestVersionTime = (new Date(data.created_at)).getTime();
 
664
  // console suprise
665
  var styleTitle1 = `
666
  font-size: 16px;
667
+ font-family: ui-monospace, monospace;
668
+ color: #06AE56;
669
  `
670
  var styleDesc1 = `
671
  font-size: 12px;
672
+ font-family: ui-monospace, monospace;
673
  `
674
  function makeML(str) {
675
  let l = new String(str)