You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As upon my research, there's no de facto HTML expression to reproduce a preview, semantically speaking. However, there's a clever way that we can approach, using the <figure> HTML tag which says:
(...) represents self-contained content, potentially with an optional caption (...). The figure, its caption, and its contents are referenced as a single unit.
So, ideally we could use the the figure to reproduce a preview.
Using the data provided:
{
"type" : "linkTool",
"data" : {
"link" : "https://codex.so",
"meta" : {
"title" : "CodeX Team",
"site_name" : "CodeX",
"description" : "Club of web-development, design and marketing. We build team learning how to build full-valued projects on the world market.",
"image" : {
"url" : "https://codex.so/public/app/img/meta_img.png"
}
}
}
}
Following that we could implement something similar to the following:
<ahref="https://codex.so" title="CodeX Team"><figure><imgsrc="https://codex.so/public/app/img/meta_img.png" alt="Codex Team"><blockquotecite="https://codex.so"><p>Club of web-development, design and marketing. We build team learning how to build full-valued projects on the world market.</p></blockquote><figcaption>CodeX Team, <cite>Codex</cite></figcaption></figure></a>
https://github.com/editor-js/link
The text was updated successfully, but these errors were encountered: