Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not HTML escape callouts in source blocks #570

Closed
xcoulon opened this issue May 23, 2020 · 0 comments · Fixed by #571
Closed

Do not HTML escape callouts in source blocks #570

xcoulon opened this issue May 23, 2020 · 0 comments · Fixed by #571
Assignees
Milestone

Comments

@xcoulon
Copy link
Member

xcoulon commented May 23, 2020

in a doc with

[source,java]
----
@QuarkusTest
public class GreetingResourceTest {

    @InjectMock
    @RestClient // <1>
    GreetingService greetingService;

    @Test
    public void testHelloEndpoint() {
        Mockito.when(greetingService.hello()).thenReturn("hello from mockito");

        given()
          .when().get("/hello")
          .then()
             .statusCode(200)
             .body(is("hello from mockito"));
    }

}
----
<1> We need to use the @RestClient CDI qualifier, since Quarkus creates the GreetingService bean with this qualifier.

the callout is rendered as &lt;b class="conum"&gt;(1)&lt;/b&gt; instead of <b class="conum">(1)</b>

@xcoulon xcoulon self-assigned this May 23, 2020
@xcoulon xcoulon added this to the v0.5.0 milestone May 23, 2020
xcoulon added a commit to xcoulon/libasciidoc that referenced this issue May 23, 2020
remove call to `escape` on the content of the source block

Fixes bytesparadise#570

Signed-off-by: Xavier Coulon <[email protected]>
xcoulon added a commit that referenced this issue May 23, 2020
remove call to `escape` on the content of the source block

Fixes #570

Signed-off-by: Xavier Coulon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant