question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Markdown not transformed in rss feed plugins

See original GitHub issue

Description

Using any of the available rss plugins [1][2] I am not able to include Markdown content such that it is converted to html. But the respective node.content entries on my BlogPost types are in html format when I query them in the playground.

Could it be that this is because the plugins use the hook beforeBuild and afterBuild when the build has already been finished / not yet started and the transformer is not yet/anymore available here?

[1] https://github.com/onecrayon/gridsome-plugin-feed [2] https://github.com/darthmeme/gridsome-plugin-rss

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
RehanSaeedcommented, Mar 30, 2020

Is there a way to get the full HTML with all remark plugins I’ve configured in Gridsome?

3reactions
hjvedvikcommented, Jul 11, 2019

I’ve been thinking about this… It might be difficult for those plugins to get transformed node fields unless they change their options. They would either generate GraphQL queries or let developers write them manually. For now, I would recommend using the marked package to transform the markdown like this:

const marked = require('marked')
...
nodeToFeedItem: node => ({
  title: node.title,
  date: node.fields.date,
  content: marked(node.content)
})

It won’t include all the Remark plugins etc, but you will at least have HTML instead of markdown 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

RSS feed items in markdown not rendered - DEVONthink
The imported markdown files seem to be valid - using marked2 show the markdown feed items in good shape. I didn´t have changed...
Read more >
Settings - MkDocs RSS Plugin - GitHub Pages
To produce a valid RSS feed, the plugin uses: some global settings from MkDocs ... Retrieved content is the raw markdown converted rougthly...
Read more >
RSS feed broken | WordPress.org
Today I suddenly got a message from Apple that my RSS feed is not validating. Haven't changed anything in my settings or plugin...
Read more >
How to fix? Wordpress wp-markdown plugin corrupted syntax ...
As a workaround I have (1) disabled the wp-markdown plugin. (2) Kept the syntax-highlighter-evolved activated. (3) Activated the Jetpack markdown plugin. The ...
Read more >
A Comprehensive Guide to RSS Feeds | FeedWind
Auto-Generated RSS feeds / URLs. Not all web pages are alike when it comes to the availability of an RSS feed. It depends...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found