mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-10 02:02:44 +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",
|
"jquery": "^3.6.0",
|
||||||
"markdown-it": "^12.2.0",
|
"markdown-it": "^12.2.0",
|
||||||
"markdown-it-attrs": "^4.1.0",
|
"markdown-it-attrs": "^4.1.0",
|
||||||
"markdown-it-bracketed-spans": "^1.0.1",
|
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
"node-vibrant": "^3.1.6",
|
"node-vibrant": "^3.1.6",
|
||||||
"svgson": "^5.2.1"
|
"svgson": "^5.2.1"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import MarkdownIt from "markdown-it";
|
import MarkdownIt from "markdown-it";
|
||||||
import MarkdownItAttrs from "markdown-it-attrs";
|
import MarkdownItAttrs from "markdown-it-attrs";
|
||||||
import MarkdownItBracketedSpans from "markdown-it-bracketed-spans";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @callback waitForElCb
|
* @callback waitForElCb
|
||||||
|
|
@ -43,13 +42,12 @@ export function getClosestToNum(arr, num) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function renderMD(src, env) {
|
export function renderMD(src, env) {
|
||||||
const md = MarkdownIt({
|
const md = MarkdownIt("commonmark", {
|
||||||
html: true,
|
html: true,
|
||||||
breaks: true,
|
breaks: true,
|
||||||
linkify: true,
|
linkify: true,
|
||||||
typographer: true
|
typographer: true
|
||||||
});
|
});
|
||||||
md.use(MarkdownItBracketedSpans);
|
|
||||||
md.use(MarkdownItAttrs);
|
md.use(MarkdownItAttrs);
|
||||||
|
|
||||||
return md.render(src, env);
|
return md.render(src, env);
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ Dribbblish.on("ready", () => {
|
||||||
name: "Progress Transition",
|
name: "Progress Transition",
|
||||||
description: `
|
description: `
|
||||||
Have the player progress bar transition smoothly.
|
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,
|
defaultValue: true,
|
||||||
onChange: (val) => $("#main").attr("playbar-transition", val ? "" : null)
|
onChange: (val) => $("#main").attr("playbar-transition", val ? "" : null)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue