Skip to content

Commit

Permalink
Example of how to insert a paywall marker (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricker authored Dec 3, 2023
1 parent 844fa9c commit ce10185
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ post.add({'type': "paragraph",
post.add({'type': 'paragraph', 'content': [
{'content': "View Link", 'marks': [{'type': "link", 'href': 'https://whoraised.substack.com/'}]}]})

# set paywall boundary
post.add({'type': 'paywall'})

# add image
post.add({'type': 'captionedImage', 'src': "https://media.tenor.com/7B4jMa-a7bsAAAAC/i-am-batman.gif"})

Expand Down

0 comments on commit ce10185

Please sign in to comment.