MCPcopy
hub / github.com/docsifyjs/docsify / replaceVar

Function replaceVar

src/core/util/polyfill/css-vars.js:4–9  ·  view source on GitHub ↗
(block, color)

Source from the content-addressed store, hash-verified

2import { get } from '../../fetch/ajax';
3
4function replaceVar(block, color) {
5 block.innerHTML = block.innerHTML.replace(
6 /var\(\s*--theme-color.*?\)/g,
7 color
8 );
9}
10
11export default function (color) {
12 // Variable support

Callers 1

css-vars.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…