5.1.0 • Published 2 years ago

ft-n-content-transform v5.1.0

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

2 years ago

5.0.0

2 years ago

4.1.0

2 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.6.2

4 years ago

2.6.1

5 years ago

2.6.0

5 years ago

2.5.2

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.7

6 years ago

2.4.6

6 years ago

2.4.5

6 years ago

2.4.4

7 years ago

2.4.3

7 years ago

2.4.2

7 years ago

2.4.1

7 years ago

2.4.0

7 years ago

2.3.0

7 years ago

2.2.6

7 years ago

2.2.5

7 years ago

2.1.5

7 years ago

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago