Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
superscript(key, attributes, children) {
const childStr = AttributedString.join(children);
const attr = {
length: childStr.string.length,
start: 0,
tag: { tag: "FONT", settings: fontConfig.body }
};
return new AttributedString(childStr.string, [attr]);
},
paragraph(key, attributes, children, index, tree) {