{"action":"created","issue":{"url":"https://api.github.com/repos/waiting-for-dev/front_matter_parser/issues/5","repository_url":"https://api.github.com/repos/waiting-for-dev/front_matter_parser","labels_url":"https://api.github.com/repos/waiting-for-dev/front_matter_parser/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/waiting-for-dev/front_matter_parser/issues/5/comments","events_url":"https://api.github.com/repos/waiting-for-dev/front_matter_parser/issues/5/events","html_url":"https://github.com/waiting-for-dev/front_matter_parser/issues/5","id":280879892,"number":5,"title":"Jekyll: undefined method `to_liquid'","user":{"login":"ChrisSki","id":643408,"avatar_url":"https://avatars1.githubusercontent.com/u/643408?v=4","gravatar_id":"","url":"https://api.github.com/users/ChrisSki","html_url":"https://github.com/ChrisSki","followers_url":"https://api.github.com/users/ChrisSki/followers","following_url":"https://api.github.com/users/ChrisSki/following{/other_user}","gists_url":"https://api.github.com/users/ChrisSki/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisSki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisSki/subscriptions","organizations_url":"https://api.github.com/users/ChrisSki/orgs","repos_url":"https://api.github.com/users/ChrisSki/repos","events_url":"https://api.github.com/users/ChrisSki/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisSki/received_events","type":"User","site_admin":false},"labels":[{"id":86583284,"url":"https://api.github.com/repos/waiting-for-dev/front_matter_parser/labels/invalid","name":"invalid","color":"e6e6e6","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-11T03:00:17Z","updated_at":"2017-12-11T09:36:03Z","closed_at":null,"author_association":"NONE","body":"Jekyll 3.6.2\r\nRuby 2.4.1\r\n\r\nI'm running into this error when using this with Jekyll. Can't seem to lock down the issue.\r\n\r\n`Liquid Exception: undefined method `to_liquid' for #<FrontMatterParser::Parsed:0x007fa26ea88f78>...`\r\n\r\nHere is the code I'm trying to execute as a Liquid filter in `parse_fm.rb`\r\n\r\n```\r\nrequire \"front_matter_parser\"\r\n\r\nmodule Jekyll\r\n  module ParseFM\r\n\r\n    par = \"\"\r\n    def frontm(string = '')\r\n      par = FrontMatterParser::Parser.new(:md).call(string)\r\n    end\r\n    par\r\n  end\r\nend\r\n\r\nLiquid::Template.register_filter(Jekyll::ParseFM)\r\n```\r\n\r\nI'm using it in a liquid template `{{yaml | frontm}}`\r\n\r\nI am simply trying to pass a string like below:\r\n\r\n```\r\n--- blog: https://example.com/page1 background-img: https://example.com/files/image.jpg buttonText: Download download: true---\r\n```"},"comment":{"url":"https://api.github.com/repos/waiting-for-dev/front_matter_parser/issues/comments/350670310","html_url":"https://github.com/waiting-for-dev/front_matter_parser/issues/5#issuecomment-350670310","issue_url":"https://api.github.com/repos/waiting-for-dev/front_matter_parser/issues/5","id":350670310,"user":{"login":"waiting-for-dev","id":52650,"avatar_url":"https://avatars1.githubusercontent.com/u/52650?v=4","gravatar_id":"","url":"https://api.github.com/users/waiting-for-dev","html_url":"https://github.com/waiting-for-dev","followers_url":"https://api.github.com/users/waiting-for-dev/followers","following_url":"https://api.github.com/users/waiting-for-dev/following{/other_user}","gists_url":"https://api.github.com/users/waiting-for-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/waiting-for-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waiting-for-dev/subscriptions","organizations_url":"https://api.github.com/users/waiting-for-dev/orgs","repos_url":"https://api.github.com/users/waiting-for-dev/repos","events_url":"https://api.github.com/users/waiting-for-dev/events{/privacy}","received_events_url":"https://api.github.com/users/waiting-for-dev/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T09:36:03Z","updated_at":"2017-12-11T09:36:03Z","author_association":"OWNER","body":"Hi @ChrisSki ,\r\n\r\nyour issue should be somewhere else. This library does not call `to_liquid` in any case. It just parses files/strings through regular expressions, but it doesn't use syntax specific libraries. Probably you have an error in your code and you are calling a method on a wrong instance."}}
{"actor":{"display_login":"waiting-for-dev"}}