octahedroid / gatsby-remark-twitter

Embed Tweet cards in Gatsby markdown
38 stars 7 forks source link

Center option not working #15

Open joshakeman opened 5 years ago

joshakeman commented 5 years ago

I'm using this plugin in a gatsby blog I'm developing and it seems to work beautifully. The only snag is I can't seem to get the align: 'center' option to work. Here's what my config looks like

module.exports = {
  siteMetadata: {
    title: 'title',
    siteUrl: 'http://localhost:8001'
  },
  plugins: [
    'gatsby-plugin-react-helmet',
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: 'gatsby-starter-default',
        short_name: 'starter',
        start_url: '/',
        background_color: '#663399',
        theme_color: '#663399',
        display: 'minimal-ui',
        icon: 'src/images/gatsby-icon.png', // This path is relative to the root of the site.
      },
    },
    `gatsby-transformer-remark`,
    `gatsby-plugin-sharp`, 
    `gatsby-transformer-sharp`,
    'gatsby-plugin-offline',
    {
      resolve: "gatsby-transformer-remark",
      options: {
        plugins: [
          {
            resolve: "@weknow/gatsby-remark-twitter",
            options: {
              debug: true,
              align: 'center'
            }
          }
        ]
      }
    },
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        path: `${__dirname}/content`,
        name: "pages",
      },
    },
  ],
}
vmaark commented 5 years ago

I have the same issue.

jmolivas commented 5 years ago

@digitalhydra can you take a look at this?

lavaldi commented 4 years ago

That option works for me now 👀

...
    {
      resolve: "gatsby-transformer-remark",
      options: {
        plugins: [
          ...
          {
            resolve: "@weknow/gatsby-remark-twitter",
            options: {
              align: 'center'
            }
          }
        ]
      }
    },
...
aravindputrevu commented 4 years ago

Sadly it is not working for me :| Tried all options.