jbolda / gatsby-source-airtable

MIT License
216 stars 43 forks source link

Mapping a 'Long text' string field to 'text/markdown' results in it being parsed as 'fileNode' 2.1.1 #275

Closed roowilliams closed 3 years ago

roowilliams commented 3 years ago

gatsby-source-airtable@2.1.1

          {
            baseId: process.env.AIRTABLE_BASE_ID,
            tableName: `CONTENT`,
            separateNodeType: true,
            queryName: `SiteContent`,
            mapping: {
              Body: 'text/markdown',
              Images: 'fileNode',
            },
          },

As per title, when I leave the Body field without mapping the raw text is returned as a string including markdown formatting marks. When I specify mapping for that field as 'text/markdown' like above I end up with a localFiles node on Body (returns null). Have tried with and without mapping for Images to no avail.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had any recent activity for 30 days. It will be closed if no further activity occurs within 7 days. Remove stale label, comment, and/or apply "ongoing issue" label to prevent this from being closed. Thank you for your contributions.

sangeet commented 3 years ago

@roowilliams I had the exact same problem today. Were you able to figure out the reason for this bug? This is essentially not letting me map strings to markdown which is making me do the conversion on the UI side which sucks in comparison.