{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1562","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1562/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1562/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1562/events","html_url":"https://github.com/asciidoctor/asciidoctor/issues/1562","id":114588231,"number":1562,"title":"xreflabel for bibliography anchor is ignored","user":{"login":"getreu","id":579082,"avatar_url":"https://avatars.githubusercontent.com/u/579082?v=3","gravatar_id":"","url":"https://api.github.com/users/getreu","html_url":"https://github.com/getreu","followers_url":"https://api.github.com/users/getreu/followers","following_url":"https://api.github.com/users/getreu/following{/other_user}","gists_url":"https://api.github.com/users/getreu/gists{/gist_id}","starred_url":"https://api.github.com/users/getreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getreu/subscriptions","organizations_url":"https://api.github.com/users/getreu/orgs","repos_url":"https://api.github.com/users/getreu/repos","events_url":"https://api.github.com/users/getreu/events{/privacy}","received_events_url":"https://api.github.com/users/getreu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/labels/compliance","name":"compliance","color":"0b02e1"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/milestones/9","html_url":"https://github.com/asciidoctor/asciidoctor/milestones/v1.6.0","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor/milestones/9/labels","id":349596,"number":9,"title":"v1.6.0","description":"","creator":{"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},"open_issues":80,"closed_issues":0,"state":"open","created_at":"2013-06-06T09:06:40Z","updated_at":"2016-03-13T03:13:35Z","due_on":null,"closed_at":null},"comments":22,"created_at":"2015-11-02T12:51:57Z","updated_at":"2016-04-02T07:27:07Z","closed_at":null,"body":"## Please consider\r\n![test adoc](https://cloud.githubusercontent.com/assets/579082/10881971/c6a8ad4c-816f-11e5-9181-2e822569c946.png)\r\n\r\n## This is the expected rendition\r\n* ![test xml](https://cloud.githubusercontent.com/assets/579082/10881981/d5ce52d6-816f-11e5-9c09-d9e926cb8c9d.png)\r\n\r\n* please note the little blue `3` \r\n  ![asciidoctor-fopub](https://cloud.githubusercontent.com/assets/579082/10881984/db40cec4-816f-11e5-9f5c-e534230e6d09.png)\r\n\r\n## asciidoctor does not honor `xreflabel`\r\nNote that [goethe] should should be substituted by `xreflable` (here 3) but it isn't! \r\n![asciidoctor2html](https://cloud.githubusercontent.com/assets/579082/10882015/15fb0052-8170-11e5-99bf-5805fef3a7c8.png)\r\n\r\n## neither asciidoctor-pdf does\r\n![asciidoctor-pdf](https://cloud.githubusercontent.com/assets/579082/10882032/387bdeb2-8170-11e5-922f-11314605f186.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/comments/204666270","html_url":"https://github.com/asciidoctor/asciidoctor/issues/1562#issuecomment-204666270","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1562","id":204666270,"user":{"login":"getreu","id":579082,"avatar_url":"https://avatars.githubusercontent.com/u/579082?v=3","gravatar_id":"","url":"https://api.github.com/users/getreu","html_url":"https://github.com/getreu","followers_url":"https://api.github.com/users/getreu/followers","following_url":"https://api.github.com/users/getreu/following{/other_user}","gists_url":"https://api.github.com/users/getreu/gists{/gist_id}","starred_url":"https://api.github.com/users/getreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getreu/subscriptions","organizations_url":"https://api.github.com/users/getreu/orgs","repos_url":"https://api.github.com/users/getreu/repos","events_url":"https://api.github.com/users/getreu/events{/privacy}","received_events_url":"https://api.github.com/users/getreu/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T07:27:07Z","updated_at":"2016-04-02T07:27:07Z","body":"## Workaround workflow\r\n\r\nHere my workaround to get the same output for both workflows:  \r\n\r\n### asciidoctor(adoc) = html; post_process_html(html) = html\r\n   \r\n  `asciidoctor -r asciidoctor-diagram -b xhtml5 myfile.adoc`\r\n `./post_process_html myfile.html\"`\r\n\r\n\r\n### asciidoctor(adoc) = xml, asciidoctor-fopub(xml) =pdf  \r\n\r\n   `asciidoctor -b docbook  -a data-uri! \"myfile.adoc\"`\r\n   `asciidoctor-fopub/fopub \"myfile.xml\"`\r\n\r\n\r\n## Workaround script\r\n\r\nFile: `/post_process_html`\r\n\r\n```\r\n#!/bin/sh\r\n\r\nInput=\"$1\"\r\n\r\n\r\nsed -i \"$Input\" \\\r\n\t-e 's|\\[Weinstein\\]|1|g' \\\r\n\t-e 's|\\[Schneier\\]|2|g' \\\r\n\t-e 's|\\[Eikenberg\\]|3|g' \\\r\n\t-e 's|\\[Bongard\\]|4|g' \\\r\n\t-e 's|\\[Greenberg\\]|5|g' \\\r\n\t-e 's|\\[Kopetz\\]|6|g' \\\r\n\t-e 's|\\[Avizienis\\]|7|g' \\\r\n\t-e 's|\\[VDC\\]|8|g' \\\r\n\t-e 's|\\[Szekeres\\]|9|g' \\\r\n\t-e 's|\\[Durumeric\\]|10|g' \\\r\n\t-e 's|\\[Mutton\\]|11|g' \\\r\n\t-e 's|\\[Codenomicon\\]|12|g' \\\r\n\t-e 's|\\[Riley\\]|13|g' \\\r\n\t-e 's|\\[Riley2\\]|14|g' \\\r\n\t-e 's|\\[Bocek\\]|15|g' \\\r\n\t-e 's|\\[Venafi\\]|16|g' \\\r\n\t-e 's|\\[Tuexen\\]|17|g' \\\r\n\t-e 's|\\[OpenSsl\\]|18|g' \\\r\n\t-e 's|\\[Hern\\]|19|g' \\\r\n\t-e 's|\\[CWE\\]|20|g' \\\r\n\t-e 's|\\[Timson\\]|21|g' \\\r\n\t-e 's|\\[NL\\]|22|g' \\\r\n\t-e 's|\\[Cimpanu\\]|23|g' \\\r\n\t-e 's|\\[Rust\\]|24|g' \\\r\n\t-e 's|\\[Rust-Benchmark\\]|25|g' \\\r\n\t-e 's|>Dependability and security attributes</a|>Figure 1</a|g' \\\r\n\t-e 's|>TLS Heartbeat protocol</a|>Figure 2</a|g' \\\r\n\t-e 's|>TLS Heartbeat with spoofed payload-length-field</a|>Figure 3</a|g' \\\r\n\t-e 's|>Heartbleed patch</a|>Figure 4</a|g' \\\r\n\t-e 's|>Development Concepts</a|>Figure 5</a|g' \\\r\n\t-e 's|>Memory layout of a Rust vector</a|>Figure 6</a|g' \\\r\n\t-e 's|>Memory layout of a Java vector</a|>Figure 7</a|g' \\\r\n\t-e 's|>The Heartbleed Vulnerability</a|>the section called “The Heartbleed Vulnerability”</a|g' \\\r\n\t-e 's|>Could Heartbleed Have Happened With Rust?</a|>the section called “Could Heartbleed Have Happened With Rust?”</a|g' \\\r\n\t-e 's|>Rust on Embedded Systems</a|>the section called “Rust on Embedded Systems”</a|g' \\\r\n\t-e 's|>Common weaknesses in C/C++ that affect memory</a|>Table 1, “Common weaknesses in C/C++ that affect memory”</a|g' \\\r\n\t-e 's|>Vulnerable Heartbeat code in C</a|>Table 2, “Vulnerable Heartbeat code in C”</a|g' \\\r\n\t-e 's|>Patched Heartbeat code in C</a|>Table 3, “Patched Heartbeat code in C”</a|g' \\\r\n\t-e 's|>Vulnerable Heartbeat code in Rust</a|>Table 4, “Vulnerable Heartbeat code in Rust”</a|g' \\\r\n\t-e 's|>Simulation of Heartbleed exploit package</a|>Table 5, “Simulation of Heartbleed exploit package”</a|g' \\\r\n\t-e 's|>System response after Heartbleed attack</a|>Table 6, “System response after Heartbleed attack”</a|g' \\\r\n\t-e 's|>Patched Heartbeat code in Rust</a|>Table 7, “Patched Heartbeat code in Rust”</a|g' \\\r\n\t-e 's|>Ressource sharing in Rust</a|>Table 8, “Ressource sharing in Rust”</a|g' \\\r\n\t-e 's|>Common weaknesses in C/C++ affecting memory avoidable with iterators</a|>Table 9, “Common weaknesses in C/C++ affecting memory avoidable with iterators”</a|g' \\\r\n\t-e 's|>Vigenère cipher in Rust</a|>Table 10, “Vigenère cipher in Rust”</a|g' \\\r\n\t-e 's|<h2\\(.*\\)/h2>|<h1\\1/h1>|g' \\\r\n\t-e 's|<h3\\(.*\\)/h3>|<h2\\1/h2>|g' \\\r\n\r\n#\t-e 's|<div id=\"preamble\"\\(.*\\)>|<div class=\"Abstract\"\\1>|g' \\\r\n```"}}