{"action":"created","issue":{"url":"https://api.github.com/repos/Sommerregen/grav-plugin-mathjax/issues/2","labels_url":"https://api.github.com/repos/Sommerregen/grav-plugin-mathjax/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Sommerregen/grav-plugin-mathjax/issues/2/comments","events_url":"https://api.github.com/repos/Sommerregen/grav-plugin-mathjax/issues/2/events","html_url":"https://github.com/Sommerregen/grav-plugin-mathjax/issues/2","id":93054605,"number":2,"title":"JS script not added to page","user":{"login":"tomzx","id":188960,"avatar_url":"https://avatars.githubusercontent.com/u/188960?v=3","gravatar_id":"","url":"https://api.github.com/users/tomzx","html_url":"https://github.com/tomzx","followers_url":"https://api.github.com/users/tomzx/followers","following_url":"https://api.github.com/users/tomzx/following{/other_user}","gists_url":"https://api.github.com/users/tomzx/gists{/gist_id}","starred_url":"https://api.github.com/users/tomzx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomzx/subscriptions","organizations_url":"https://api.github.com/users/tomzx/orgs","repos_url":"https://api.github.com/users/tomzx/repos","events_url":"https://api.github.com/users/tomzx/events{/privacy}","received_events_url":"https://api.github.com/users/tomzx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-04T22:45:07Z","updated_at":"2015-07-06T14:19:19Z","closed_at":null,"body":"It appears that $this->modified is not set to true for some reason, which prevents the addition of the required js file in the generate page. Thus, I end up with a raw equation being displayed in the page.\r\n\r\nIf I remove the `!$this->`modified` condition from line 168 (https://github.com/Sommerregen/grav-plugin-mathjax/blob/a9caea2757f6d9a393ce486273865bb859599398/mathjax.php#L168), I get it to load the JS files and display the equation image.\r\n\r\n```\r\n    // Skip if process is set to false\r\n    if (!$config->get('process', false) || !$this->modified) {\r\n      return;\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/Sommerregen/grav-plugin-mathjax/issues/comments/118870091","html_url":"https://github.com/Sommerregen/grav-plugin-mathjax/issues/2#issuecomment-118870091","issue_url":"https://api.github.com/repos/Sommerregen/grav-plugin-mathjax/issues/2","id":118870091,"user":{"login":"Sommerregen","id":9073307,"avatar_url":"https://avatars.githubusercontent.com/u/9073307?v=3","gravatar_id":"","url":"https://api.github.com/users/Sommerregen","html_url":"https://github.com/Sommerregen","followers_url":"https://api.github.com/users/Sommerregen/followers","following_url":"https://api.github.com/users/Sommerregen/following{/other_user}","gists_url":"https://api.github.com/users/Sommerregen/gists{/gist_id}","starred_url":"https://api.github.com/users/Sommerregen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sommerregen/subscriptions","organizations_url":"https://api.github.com/users/Sommerregen/orgs","repos_url":"https://api.github.com/users/Sommerregen/repos","events_url":"https://api.github.com/users/Sommerregen/events{/privacy}","received_events_url":"https://api.github.com/users/Sommerregen/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T14:19:19Z","updated_at":"2015-07-06T14:19:19Z","body":"I know I was implementing a technique to add assets dynamically to a page even if page caching was on. This is a stub and I recently learned that with Grav it is not possible to do such things. However at that time I released the feature it was working at least on a page. On a modular page I don't know and have to test it. Unfortunately my time is really limited at the moment. I will keep an eye of the issue here and release a new version as soon as possible."}}