-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Using YML files as Markdown #3195
Comments
Gatsby can take in YAML input if you want. Take a look at:
https://gatsbyjs.github.io/gatsby-starter-kitchen-sink/yaml/
https://www.gatsbyjs.org/blog/2017-11-06-migrate-hugo-gatsby/
…On Dec 13, 2017 12:59 AM, "Ayush Pandey" ***@***.***> wrote:
Hi , I am new to Gatsby trying to port my website from hugo to gatsby, But
am stuck in , that how to change the YML files into markdown, In hugo there
is an awesome property
|markdownify
which easily convert yml into markdown and we can also use some HTML tags
inside it.
Is there is any way I can convert ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3195>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEL3W57lCTy6yz-G-kr-b_I2m9UH93Raks5s_5ILgaJpZM4RANOz>
.
|
For converting markdown fields in frontmatter, this would be a useful pattern to support. We'd be open to a PR adding this to gatsby-transformer-remark. |
@calcsam Thanks for your help, but I think think is not the answer of my question, I am able to pull data from YML files successfully, I want data to be in YML file and convert it to markdown |
@KyleAMathews I guess gatsby-transformer-remark will not recognize the file having YML extension. |
Oh sorry, you want gatsby-transformer-yaml. If you haven't yet, try going through the official tutorial. |
@KyleAMathews CheckOut this link issue-2817 . I am also facing exactly the same problem. Is there is any another way to solve this issue? |
This isn't supported right now — so either you can write custom code as described in that issue for handling the markdown or you can put together a PR to add support. |
Thanks, Gonna try the custom code ...I |
Closing this issue as it's contained in the linked issue. |
I am getting the same kind of problem, I am able to pull the contents of yaml using gatsby-transformer-yaml but all pulled data is rendered as plain text ,If i enter any html tag or any url it is rendered as plain text only.Is there any way that I can markdownify this yaml while using it in gatsby so that I dont get all as plain text only? |
@avinashs735 in that case you may want to use a third-party component like https://github.com/rexxars/react-markdown |
Hi , I am new to Gatsby trying to port my website from hugo to gatsby, But am stuck in , that how to change the YML files into markdown, In hugo there is an awesome property
which easily convert yml into markdown and we can also use some HTML tags inside it.
Is there is any way I can convert ?
The text was updated successfully, but these errors were encountered: