How to use the @times-components/typeset.AttributedString.join function in @times-components/typeset

To help you get started, we’ve selected a few @times-components/typeset examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / article-skeleton / src / article-body / article-body-row.js View on Github external
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) {

@times-components/typeset

A package for markup layout with arbitrary shapes

BSD-3-Clause
Latest version published 5 months ago

Package Health Score

81 / 100
Full package analysis

Similar packages