Open mornir opened 4 years ago
I use this serializer to render external link:
<template functional> <a v-if="props.href && children[0] && children[0].text" :href="props.href" target="_blank" rel="noopener" class="underline" > <slot /> </a> </template>
When marking the link bold, the marked text is not rendered:
A bold link:
This component handles this case correctly: https://github.com/nuxt-community/sanity-module/blob/main/src/components/sanity-content.ts
I use this serializer to render external link:
When marking the link bold, the marked text is not rendered:![image](https://user-images.githubusercontent.com/1411843/90973995-79501c80-e527-11ea-9434-521e2df3435f.png)
Expected
A bold link:![image](https://user-images.githubusercontent.com/1411843/90974012-9ab10880-e527-11ea-90ad-87c7dcb66fdf.png)
This component handles this case correctly: https://github.com/nuxt-community/sanity-module/blob/main/src/components/sanity-content.ts