5.1.0 • Published 4 years ago

ft-n-content-transform v5.1.0

Weekly downloads
192
License
-
Repository
-
Last release
4 years ago

Coverage Status

n-content-transform

Further (opinionated) transformation of content html for Next

Purpose is to do 'on-the-fly' further transformation of content html (eg. article body, opening).

These transformations are opinionated / specific to next front end requirements and therefore not within the stylesheet transforms handled by the next-es-interface ingest process

Transforms handled include;

  • Data tracking - adding to specific elements
  • Images - determining presentational variant, adding placeholders, using image service
  • External links - enabling non-FT links to be opened in a new tab / window
  • Video - add placeholder for video and brightcove player

Usage

const contentTransform = require('ft-n-content-transform');

All transforms

let transformedContent = contentTransform.transformAll(contentHtml, *flags*);

Just image transforms

let transformedContent = contentTransform.transformImages(contentHtml, *flags*);
5.1.0

4 years ago

5.0.0

4 years ago

4.1.0

4 years ago

4.0.2

4 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.6.2

6 years ago

2.6.1

7 years ago

2.6.0

7 years ago

2.5.2

7 years ago

2.5.1

7 years ago

2.5.0

7 years ago

2.4.7

8 years ago

2.4.6

8 years ago

2.4.5

8 years ago

2.4.4

9 years ago

2.4.3

9 years ago

2.4.2

9 years ago

2.4.1

9 years ago

2.4.0

9 years ago

2.3.0

9 years ago

2.2.6

9 years ago

2.2.5

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.1

9 years ago

2.0.0

10 years ago

1.2.4

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.0

10 years ago