Added embeds for how tos

This commit is contained in:
Mitchell McCaffrey
2020-07-12 18:38:53 +10:00
parent dfc253c765
commit fe0a58ca5a
8 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ function TableCell({ children }) {
function Link({ href, children }) {
const linkText = children[0].props.value;
if (linkText === "embed:") {
return <Embed src={href} />;
return <Embed src={href} my={2} />;
} else {
console.log(href);
return <UILink href={href}>{children}</UILink>;