Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Jan 12, 2021
1 parent 299bc0a commit 1fc4608
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,10 @@ export default {
<div v-if="data">
<h1>{{ data.blogPost.title }}</h1>
<datocms-structured-text :structuredText="{data.blogPost.content}" />
{/* ->
<h1>Hello <strong>world!</strong></h1>
*/}
<!--
Final result:
<h1>Hello <strong>world!</strong></h1>
-->
</div>
</article>
</template>
Expand Down Expand Up @@ -368,23 +369,24 @@ You can also pass custom renderers for special nodes (inline records, record lin
<div v-if="data">
<h1>{{ data.blogPost.title }}</h1>
<datocms-structured-text
:structuredText="{data.blogPost.content}"
:renderInlineRecord="{ renderInlineRecord }"
:renderLinkToRecord="{ renderLinkToRecord }"
:renderBlock="{ renderBlock }"
:structuredText="data.blogPost.content"
:renderInlineRecord="renderInlineRecord"
:renderLinkToRecord="renderLinkToRecord"
:renderBlock="renderBlock"
/>
{/* Final result:
<h1>Welcome onboard <a href="/team/mark-smith">Mark</a></h1>
<p>
So happy to have
<a href="/team/mark-smith">this awesome humang being</a> in our team!
</p>
<img
src="https://www.datocms-assets.com/205/1597757278-austin-distel-wd1lrb9oeeo-unsplash.jpg"
alt="Our team at work"
/>
*/}
<!--
Final result:
<h1>Welcome onboard <a href="/team/mark-smith">Mark</a></h1>
<p>
So happy to have
<a href="/team/mark-smith">this awesome humang being</a> in our team!
</p>
<img
src="https://www.datocms-assets.com/205/1597757278-austin-distel-wd1lrb9oeeo-unsplash.jpg"
alt="Our team at work"
/>
-->
</div>
</article>
</template>
Expand Down

0 comments on commit 1fc4608

Please sign in to comment.