Skip to content

Commit 355c0fe

Browse files
authored
Merge pull request #28 from contentstack/ChristopherJennings-renderoption-fix
Rename renderOption for clarity
2 parents 640f22c + 7c65872 commit 355c0fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License (MIT)
22

33

4-
Copyright (c) 2016-2022 Contentstack
4+
Copyright (c) 2016-2023 Contentstack
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Let’s learn how you can use Utils SDK to render RTE embedded items and Superch
2727
### Create Render Option
2828
To render embedded items on the front-end, use the renderOptions function, and define the UI elements you want to show in the front-end of your website, as shown in the example below:
2929
```js
30-
const renderOptions = {
30+
const renderOption = {
3131
// to render Supercharged RTE NodeType content like paragraph, link, table, order list, un-order list and more.
3232
p: (node, next) => {
3333
`<p class='class-id'>${next(node.children)}</p>` // you will need to call next function with node children contents

0 commit comments

Comments
 (0)