Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Spike | Can we use TinaMarkdown? #1499

Closed
1 of 2 tasks
tkapa opened this issue Sep 24, 2024 · 4 comments
Closed
1 of 2 tasks

✨ Spike | Can we use TinaMarkdown? #1499

tkapa opened this issue Sep 24, 2024 · 4 comments
Assignees
Labels
TinaCMS Relates to TinaCMS migration Type: Feature A suggested idea for this project

Comments

@tkapa
Copy link
Member

tkapa commented Sep 24, 2024

Cc: @bradystroud @JackDevAU

Hi

Blocks #1470

Pain

Currently, we aren't sure if we can use <TinaMarkdown /> to render rich-text in our Content.

Suggested Solution

Tasks

  • Investigate potential solutions to use TinaMarkdown
  • No longer required if we can use Tina's GraphQL client (Or get a similar result from Gatsby's)

Acceptance Criteria

  • Done video - how to implement

Thanks!

@tkapa tkapa added Type: Feature A suggested idea for this project TinaCMS Relates to TinaCMS migration labels Sep 24, 2024
@Calinator444
Copy link
Member

Calinator444 commented Sep 27, 2024

@bradystroud

Based on my investigation the markdown component wont' work out of the box. I'll see if I can massage the response from gatsby's graphql query to a format suitable for the markdown component.

Image
Figure: Markdown Tina markdown component should appear here


Image

Figure: gatsby graphql response being passed into the markdown component

@Calinator444
Copy link
Member

Note - I'll need to figure out convert the markdown files to javascript at build time and pass them into the TinaMarkdown component.

@tkapa
Copy link
Member Author

tkapa commented Oct 1, 2024

@Calinator444 Nice work on this one, as per our conversation during the daily, try to get a <5 min done video showing this solution, and link to your repo here :)

@Calinator444
Copy link
Member

@bradystroud

Done - I have an explanation video here

https://youtu.be/b2JNOq_OVoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TinaCMS Relates to TinaCMS migration Type: Feature A suggested idea for this project
Projects
None yet
Development

No branches or pull requests

2 participants