{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/3395","repository_url":"https://api.github.com/repos/jgm/pandoc","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/3395/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/3395/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/3395/events","html_url":"https://github.com/jgm/pandoc/issues/3395","id":203900726,"number":3395,"title":"Extended lua support","user":{"login":"tarleb","id":507994,"avatar_url":"https://avatars.githubusercontent.com/u/507994?v=3","gravatar_id":"","url":"https://api.github.com/users/tarleb","html_url":"https://github.com/tarleb","followers_url":"https://api.github.com/users/tarleb/followers","following_url":"https://api.github.com/users/tarleb/following{/other_user}","gists_url":"https://api.github.com/users/tarleb/gists{/gist_id}","starred_url":"https://api.github.com/users/tarleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarleb/subscriptions","organizations_url":"https://api.github.com/users/tarleb/orgs","repos_url":"https://api.github.com/users/tarleb/repos","events_url":"https://api.github.com/users/tarleb/events{/privacy}","received_events_url":"https://api.github.com/users/tarleb/received_events","type":"User","site_admin":false},"labels":[{"id":497718502,"url":"https://api.github.com/repos/jgm/pandoc/labels/API","name":"API","color":"bfd4f2","default":false},{"id":113084,"url":"https://api.github.com/repos/jgm/pandoc/labels/enhancement","name":"enhancement","color":"fbca04","default":true},{"id":18352038,"url":"https://api.github.com/repos/jgm/pandoc/labels/status:in-progress","name":"status:in-progress","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-01-29T22:14:46Z","updated_at":"2017-02-17T05:02:57Z","closed_at":null,"body":"Pandoc contains a full lua interpreter, which is currently used for custom writers only.  It would be nice to extend pandoc's lua support, enabling lua filters and possibly custom readers.\r\n\r\nThis issue is intended as a discussion place for basic ideas.\r\n\r\nThe simplest way to allow lua filters would be to implement a `StackValue` instance for aeson's `Value` type. Lua is very similar to javascript, making json-like objects a good choice for document elements. As an added benefit, any lua library that is built to work with this data, could also be used in a standalone filter.  Lua filters could easily be backported to older pandoc versions.\r\n\r\nThe only(?) downside of this approach is that it won't be as performant as possible alternatives.\r\n\r\nI'd love to see this included in v2.0, but didn't find the time yet to implement it. (I wrote an incomplete [prototype](https://github.com/tarleb/panluna) which I now find to be over-engineered and difficult to debug, putting me back to square one.) \r\n\r\nExposing reader and writer functions as well as their options to lua would be the second step."},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/280553360","html_url":"https://github.com/jgm/pandoc/issues/3395#issuecomment-280553360","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/3395","id":280553360,"user":{"login":"daurnimator","id":127971,"avatar_url":"https://avatars.githubusercontent.com/u/127971?v=3","gravatar_id":"","url":"https://api.github.com/users/daurnimator","html_url":"https://github.com/daurnimator","followers_url":"https://api.github.com/users/daurnimator/followers","following_url":"https://api.github.com/users/daurnimator/following{/other_user}","gists_url":"https://api.github.com/users/daurnimator/gists{/gist_id}","starred_url":"https://api.github.com/users/daurnimator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daurnimator/subscriptions","organizations_url":"https://api.github.com/users/daurnimator/orgs","repos_url":"https://api.github.com/users/daurnimator/repos","events_url":"https://api.github.com/users/daurnimator/events{/privacy}","received_events_url":"https://api.github.com/users/daurnimator/received_events","type":"User","site_admin":false},"created_at":"2017-02-17T05:02:57Z","updated_at":"2017-02-17T05:02:57Z","body":"how does this compare to [lunamark](https://github.com/jgm/lunamark)? Can we keep interfaces the same/similar across the projects?"}}
{"actor":{"display_login":"daurnimator"}}