mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-25 21:11:58 +00:00
remove markdown-it-bracketed-spans
This commit is contained in:
parent
1296e13c73
commit
219c16872c
3 changed files with 2 additions and 5 deletions
|
|
@ -21,7 +21,6 @@
|
|||
"jquery": "^3.6.0",
|
||||
"markdown-it": "^12.2.0",
|
||||
"markdown-it-attrs": "^4.1.0",
|
||||
"markdown-it-bracketed-spans": "^1.0.1",
|
||||
"moment": "^2.29.1",
|
||||
"node-vibrant": "^3.1.6",
|
||||
"svgson": "^5.2.1"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import MarkdownIt from "markdown-it";
|
||||
import MarkdownItAttrs from "markdown-it-attrs";
|
||||
import MarkdownItBracketedSpans from "markdown-it-bracketed-spans";
|
||||
|
||||
/**
|
||||
* @callback waitForElCb
|
||||
|
|
@ -43,13 +42,12 @@ export function getClosestToNum(arr, num) {
|
|||
}
|
||||
|
||||
export function renderMD(src, env) {
|
||||
const md = MarkdownIt({
|
||||
const md = MarkdownIt("commonmark", {
|
||||
html: true,
|
||||
breaks: true,
|
||||
linkify: true,
|
||||
typographer: true
|
||||
});
|
||||
md.use(MarkdownItBracketedSpans);
|
||||
md.use(MarkdownItAttrs);
|
||||
|
||||
return md.render(src, env);
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ Dribbblish.on("ready", () => {
|
|||
name: "Progress Transition",
|
||||
description: `
|
||||
Have the player progress bar transition smoothly.
|
||||
Turn this off if you're noticing high CPU utilization [(see)](https://github.com/JulienMaille/dribbblish-dynamic-theme/issues/118){.muted}
|
||||
*Turn this off if you're noticing high CPU utilization [(see)](https://github.com/JulienMaille/dribbblish-dynamic-theme/issues/118)*{.muted}
|
||||
`,
|
||||
defaultValue: true,
|
||||
onChange: (val) => $("#main").attr("playbar-transition", val ? "" : null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue