2.6.0 • Published 6 months ago

@teclone/prismic-richtext v2.6.0

Weekly downloads
11
License
ISC
Repository
github
Last release
6 months ago

Prismic RichText

A helper to build generic tree from rich text raw json

Get a generic tree from a richtext

import { asTree } from '@teclone/prismic-richtext';
asTree(doc.data.myRichText);

Get a serialized tree from a richtext

You can find an example here: https://github.com/prismicio/prismic-dom/blob/master/src/index.js

  import {serialize} from '@teclone/prismic-richtext';

  // define a serialize function to manage your fragment
  // you can use the 'Element' Helper from PrismicRichText to match the different fragments
  function customSerializer() {...}

  serialize(doc.data.myRichText, customSerializer, htmlSerializer)
2.6.0

6 months ago

2.5.0

10 months ago

2.5.2

10 months ago

2.5.1

10 months ago

2.4.1

2 years ago

2.4.0

2 years ago

2.4.2

2 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.2.2

3 years ago

2.1.2

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.3.3

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.8.2

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.1

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.4.3

4 years ago

1.6.0

4 years ago

1.5.1

4 years ago

1.4.2

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

5 years ago

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.13

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago