{"action":"created","issue":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/282","labels_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/282/comments","events_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/282/events","html_url":"https://github.com/tpetricek/FSharp.Formatting/pull/282","id":66651144,"number":282,"title":"Add a public API to process a customized LiterateDocument.","user":{"login":"matthid","id":1866463,"avatar_url":"https://avatars.githubusercontent.com/u/1866463?v=3","gravatar_id":"","url":"https://api.github.com/users/matthid","html_url":"https://github.com/matthid","followers_url":"https://api.github.com/users/matthid/followers","following_url":"https://api.github.com/users/matthid/following{/other_user}","gists_url":"https://api.github.com/users/matthid/gists{/gist_id}","starred_url":"https://api.github.com/users/matthid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthid/subscriptions","organizations_url":"https://api.github.com/users/matthid/orgs","repos_url":"https://api.github.com/users/matthid/repos","events_url":"https://api.github.com/users/matthid/events{/privacy}","received_events_url":"https://api.github.com/users/matthid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T16:50:50Z","updated_at":"2015-04-07T13:09:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/pulls/282","html_url":"https://github.com/tpetricek/FSharp.Formatting/pull/282","diff_url":"https://github.com/tpetricek/FSharp.Formatting/pull/282.diff","patch_url":"https://github.com/tpetricek/FSharp.Formatting/pull/282.patch"},"body":"Now that Literate if internal my fix for #251 doesn't work anymore :(.\r\nSee also https://github.com/tpetricek/FSharp.Formatting/commit/dd03c61e726af20867b1c824e34ab7a6f484fa64.\r\n\r\nDo you like another optional parameter for that? Alternatively we could use a03fcfb."},"comment":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/comments/90543425","html_url":"https://github.com/tpetricek/FSharp.Formatting/pull/282#issuecomment-90543425","issue_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/282","id":90543425,"user":{"login":"tpetricek","id":485413,"avatar_url":"https://avatars.githubusercontent.com/u/485413?v=3","gravatar_id":"","url":"https://api.github.com/users/tpetricek","html_url":"https://github.com/tpetricek","followers_url":"https://api.github.com/users/tpetricek/followers","following_url":"https://api.github.com/users/tpetricek/following{/other_user}","gists_url":"https://api.github.com/users/tpetricek/gists{/gist_id}","starred_url":"https://api.github.com/users/tpetricek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpetricek/subscriptions","organizations_url":"https://api.github.com/users/tpetricek/orgs","repos_url":"https://api.github.com/users/tpetricek/repos","events_url":"https://api.github.com/users/tpetricek/events{/privacy}","received_events_url":"https://api.github.com/users/tpetricek/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T13:09:32Z","updated_at":"2015-04-07T13:09:32Z","body":"Oh, hmm - I guess we don't need to make it internal. I did that just to cleanup the public API reference, but we can just `[omit]` the module.\r\n\r\nFor individual document, you should be able to use `ParseScriptFile`, then do the transform and then call `WriteHtml`. Or is there some reason why this wouldn't work?\r\n\r\nNow, I see that this cannot be done for `ProcessDirectory`. I'm not a very big fan of complex callbacks ([see this blog post](http://tomasp.net/blog/2015/library-frameworks/index.html)), so I'd probably prefer an API where you can call `ParseDirectory` (which returns a list of files with parsed documents) and then `WriteHtml` taking the list and writing all documents. Would that let you solve the problem?"}}