-
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
I cannot add CSS classes to non frontmatter images #12339
Comments
When you query on the files... what does the html look like? Is it formatted correctly there? |
Interesting - yeah! So I haven't used Jekyll a ton, but that curly brace syntax (not sure what it's called) isn't currently supported by our gatsby-transformer-remark plugin. However - this is totally something that could be implemented with a custom remark plugin. A remark plugin has an I think the idea here is you would traverse for links and images (or whatever content you desire), and then depending on the type of content in the curly brace, would apply attributes to the nodes. Hopefully this helps! I'll label this as a feature request, but we'd happily help out or assist on this, e.g. with a pairing session. |
The output html has the link and the raw variable add at the end {rel="noreferrer"} |
@donaldboulton wasn't really my recommendation to try and go with that package, but if you have luck with that--that's great too! I was just recommending it as the type of plugin you can write with our Remark plugin infrastructure. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
Markdown has many different variables that are different from kramdown to marked to others. |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m Thanks again for being part of the Gatsby community! |
I have a lot of markdown files,"taken form a Jekyll Blog", that have variables on links and images that Gatsby does not recognize, similar to below
![image](./image.jpg){.some-class}
[Link](https://linktosomething.com){:"rel="noreferrer"}
Most all of them do not have the same classes or link variables, which are scattered through lots of pages, and posts, and are not in front matter.
I was hoping for a simple conversion for my posts to Gatsby
This issue was raised in #3882, but it was never addressed.
Several days of extensive searching and nothing on a answer,
Using Gatsby 2.1 with.
which should address the markdown variables in my pages.
repo
Page Example
The text was updated successfully, but these errors were encountered: