2.4.2 • Published 4 months ago

@teclone/prismic-richtext v2.4.2

Weekly downloads
11
License
ISC
Repository
github
Last release
4 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.4.1

4 months ago

2.4.0

4 months ago

2.4.2

4 months ago

2.3.1

1 year ago

2.3.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.2.2

2 years ago

2.1.2

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.3.3

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

1.8.2

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.4.3

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.4.2

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.20

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.13

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago