{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/203","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/203/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/203/events","html_url":"https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/203","id":192052286,"number":203,"title":"asciidoctor gradle plugin not rendering inline macro extension","user":{"login":"efeig","id":24228431,"avatar_url":"https://avatars.githubusercontent.com/u/24228431?v=3","gravatar_id":"","url":"https://api.github.com/users/efeig","html_url":"https://github.com/efeig","followers_url":"https://api.github.com/users/efeig/followers","following_url":"https://api.github.com/users/efeig/following{/other_user}","gists_url":"https://api.github.com/users/efeig/gists{/gist_id}","starred_url":"https://api.github.com/users/efeig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efeig/subscriptions","organizations_url":"https://api.github.com/users/efeig/orgs","repos_url":"https://api.github.com/users/efeig/repos","events_url":"https://api.github.com/users/efeig/events{/privacy}","received_events_url":"https://api.github.com/users/efeig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-28T16:32:31Z","updated_at":"2016-12-07T21:37:58Z","closed_at":null,"body":"## Expected Behavior\r\n\r\nI use the extensions configuration method of the asciidoctor gradle plugin to add an inline macro, that transforms the following markup `issue:PRJ-100[]` into a link that points to the web page for issue PRJ-100 (see build file below). Until gradle version 2.14 the result was as expected: In the generated html file all occurences were replaced by a proper link.\r\n\r\n## Current Behavior\r\n\r\nIn gradle version 3.1 and 3.2.1 the inline macro is not rendered correctly any more. After switching to a new gradle version the link is created correctly only once. In following builds the pattern `issue:PRJ-100[]` is not transformed into a link any more. I realized that the problem only occurs when I include the line\r\n\r\n     classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'\r\n\r\nwithout generating a pdf file (i.e. using pdf as backend). Leaving the line as it is and using pdf as backend or commenting the line out leads to the expected result.\r\n\r\n## Context\r\n\r\nIn principle it makes no sense to include\r\n\r\n     classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'\r\n\r\nwihtout generating pdf files from AsciiDoc files. However, should this line affect the correct rendering of inline macros in html files?\r\n\r\n## Steps to Reproduce (for bugs)\r\n\r\nMy build file looks like that\r\n```\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n\r\n    dependencies {\r\n        classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'\r\n        classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'\r\n    }\r\n}\r\n\r\napply plugin: 'org.asciidoctor.convert'\r\n\r\nasciidoctor {\r\n    backends=['html5']\r\n//    backends=['html5', 'pdf']\r\n    extensions {\r\n         inlinemacro(name: \"jira\") {\r\n            parent, target, attributes ->\r\n              options = [\r\n                \"type\": \":link\",\r\n                \"target\": \"https://my.issue.server/${target}\".toString()\r\n            ]\r\n            createInline(parent, \"anchor\", target, attributes, options).render()\r\n        }\r\n      }    \r\n}\r\n```\r\nPutting a test.adoc file in the default sources dir `src/docs/asciidoc` with following content\r\n```\r\njira:PRJ-1058[] \r\n```\r\nand executing the asciidoctor task, should reproduce the problem.\r\n\r\n## Your Environment\r\n\r\n* Build scan URL: https://scans.gradle.com/s/hb2x6qnjapvfg/infrastructure\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/comments/265581242","html_url":"https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/203#issuecomment-265581242","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-gradle-plugin/issues/203","id":265581242,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T21:37:58Z","updated_at":"2016-12-07T21:37:58Z","body":"> Document in README that changes in AsciidoctorJ or the DSL versions require to restart the Daemon.\r\n\r\nAs a user, that seems like a reasonable restriction to me. (Of course, if you can figure out how to lift that restriction, then go for it)."}}
{"actor":{"display_login":"mojavelinux"}}