Files
NapCatQQ/.pnpm-store/v3/files/39/4e50fea2474a9a1e8f1d0ac6cafef4adf1299099f5a0ff8de4a71f371ece6fde90f328c4a1dc0f2d02cf8135e6f232de84261df27fba5699bdf5607361a416
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

14 lines
478 B
Plaintext

import { ClassAttributor, Scope, StyleAttributor } from 'parchment';
const config = {
scope: Scope.INLINE,
whitelist: ['serif', 'monospace']
};
const FontClass = new ClassAttributor('font', 'ql-font', config);
class FontStyleAttributor extends StyleAttributor {
value(node) {
return super.value(node).replace(/["']/g, '');
}
}
const FontStyle = new FontStyleAttributor('font', 'font-family', config);
export { FontStyle, FontClass };
//# sourceMappingURL=font.js.map