Alexandra Spalato

How to Save 3.5 Hours A Week with Real Plans

This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.

This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind. This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.

This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.

This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind. This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what is on your mind.

const getCode = node => {
  if (node.children.length > 0 && node.children[0].name === 'code') {
    return node.children[0].children
  } else {
    return node.children
  }
}

const CodeParser = node => {
  if (node.name === 'pre') {
    return (
      node.children.length > 0 && (
        <SyntaxHighlighter style={shadesOfPurple} language={getLanguage(node)}>
          {domToReact(getCode(node))}
        </SyntaxHighlighter>
      )
    )
  }
}
const getLanguage = node => {
  if (node.attribs.class != null) {
    return node.attribs.class
  }
  return null
}
//
Comments are loading...
© 2023 | Built with ♥️ on Gatsby Wp Themes using WPGraphQL and Gatsby