Skip to content

Commit ce10185

Browse files
authored
Example of how to insert a paywall marker (#24)
1 parent 844fa9c commit ce10185

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ post.add({'type': "paragraph",
6767
post.add({'type': 'paragraph', 'content': [
6868
{'content': "View Link", 'marks': [{'type': "link", 'href': 'https://whoraised.substack.com/'}]}]})
6969

70+
# set paywall boundary
71+
post.add({'type': 'paywall'})
72+
7073
# add image
7174
post.add({'type': 'captionedImage', 'src': "https://media.tenor.com/7B4jMa-a7bsAAAAC/i-am-batman.gif"})
7275

0 commit comments

Comments
 (0)