Question: The below Java code gives errors in Groovy..

```
  private String getSignature() {
    String timestamp = getUTCTimestamp();
    String nonce = getNonce();
    String digest = getPasswordDigest(nonce, timestamp);

    return String.format(
            "UsernameToken Username=\\"%s\\", PasswordDigest=\\"%s\\", Nonce=\\"%s\\", Created=\\"%s\\"", apiUsername, digest, nonce, timestamp);
}

```

Specifically the String.format line, how to re-write in Groovy?

Answer: 
You're probably using your markdown inside [html block](https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements) elements (p, h1, ...). And kramdown, by default, doesn't parse markdown in such tags.

In order to parse md inside html block elements, you can configure kramdown like this :

**\_config.yml**

```
kramdown:
  parse_block_html: true

```
I had forgotten this about this question. It does not appear that there is any way that Jekyll can translate this markup directly but I did manage a workaround with the `markdown` text filter:

```
{%- capture links -%}
  [my link]({{ site.baseurl }}{% link _my_collection/my-file.md %})
  [my link](my/correct/path)
  [link text](https://google.com)
{%- endcapture -%}
{# Remove <p> tags that markdownify seems to add #}
{{ links | markdownify | remove: '<p>' | remove: '</p>' }}

```