Created
June 2, 2020 09:50
-
-
Save TheEskhaton/419647258ef9126fdae6fa8693afd861 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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