You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im currently using this plugin to handle mentions for micro.blog. I noticed that it filters out everything that's not a "page". Is there a way to have the plugin convert the @ mentions on a feed.json and feed.xml page?
Thanks so much!
The text was updated successfully, but these errors were encountered:
I needed this as well, and it looks like altering this plugin as-is is harder than it looks due to the need to escape the output for XML documents, so I took a different approach. I ripped out the guts of the plugin and turned it into a liquid filter:
Just drop this in your _plugins folder (and add the "html-pipeline" gem to your Gemfile) and this creates a new "replace_mentions" liquid filter that you can use to do something like this:
{{ content | replace_mentions | xml_escape }}
Because it's a filter, this is a lot more flexible, as you can apply it at your discretion. In my case, I apply it in the default layout as well as in the XML template that I use for generating my RSS feed (which I then pass into an xml_escape pass).
Because I basically gutted the existing plugin, this uses all the same configuration settings and so forth, so it should drop in cleanly and can even be used side-by-side with the plugin.
Im currently using this plugin to handle mentions for micro.blog. I noticed that it filters out everything that's not a "page". Is there a way to have the plugin convert the @ mentions on a feed.json and feed.xml page?
Thanks so much!
The text was updated successfully, but these errors were encountered: