Skip to content

Instantly share code, notes, and snippets.

@TheEskhaton
Created June 2, 2020 09:50
Show Gist options
  • Save TheEskhaton/419647258ef9126fdae6fa8693afd861 to your computer and use it in GitHub Desktop.
Save TheEskhaton/419647258ef9126fdae6fa8693afd861 to your computer and use it in GitHub Desktop.
import React from 'react'
import Figure from './Figure'
import Gist from 'super-react-gist';
const serializers = {
types: {
authorReference: ({node}) => <span>{node.author.name}</span>,
mainImage: Figure,
gist: ({node}) => {
const {url} = node;
return <div style={{maxWidth:"645px"}}><Gist url={url}></Gist></div>;
}
}
}
export default serializers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment