Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
break() {
const attr = {
length: 1,
start: 0,
tag: { tag: "FONT", settings: fontConfig.body }
};
return new AttributedString("\n", [attr]);
},
keyFacts(key, attributes, children, index, tree) {
text(key, attributes) {
const attr = {
length: attributes.value.length,
start: 0,
tag: { tag: "FONT", settings: fontConfig.body }
};
return new AttributedString(attributes.value, [attr]);
},
heading2(key, attributes, children, index, tree) {
link(key, { href, canonicalId, type }, children) {
const childStr = AttributedString.join(children);
const attr = {
length: childStr.string.length,
start: 0,
tag: { tag: "LINK", href, canonicalId, type, settings: fontConfig.body }
};
return new AttributedString(childStr.string, [attr]);
},
subscript(key, attributes, children) {