2.6.0 • Published 1 year ago

@teclone/prismic-richtext v2.6.0

Weekly downloads
11
License
ISC
Repository
github
Last release
1 year 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

1 year ago

2.5.0

2 years ago

2.5.2

2 years ago

2.5.1

2 years 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

4 years ago

2.2.0

4 years ago

2.2.2

4 years ago

2.1.2

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.3.3

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.8.2

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.1

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.4.3

5 years ago

1.6.0

5 years ago

1.5.1

5 years ago

1.4.2

5 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 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

6 years ago

1.1.14

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.13

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago