5.1.0 • Published 3 years ago

ft-n-content-transform v5.1.0

Weekly downloads
192
License
-
Repository
-
Last release
3 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

3 years ago

5.0.0

3 years ago

4.1.0

3 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.6.2

5 years ago

2.6.1

6 years ago

2.6.0

6 years ago

2.5.2

6 years ago

2.5.1

6 years ago

2.5.0

6 years ago

2.4.7

7 years ago

2.4.6

7 years ago

2.4.5

7 years ago

2.4.4

8 years ago

2.4.3

8 years ago

2.4.2

8 years ago

2.4.1

8 years ago

2.4.0

8 years ago

2.3.0

8 years ago

2.2.6

8 years ago

2.2.5

8 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

9 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago