Skip to content

variables in angle brackets are not rendered #2007

@shainaraskas

Description

@shainaraskas

Describe the bug

if i have a code snippet like this in my docs, using the console language, <OTHER_HOST_URL> won't render in the output. escaping \ also doesn't fix it. only &lt; works

assume this might have something to do with the comment logic <1>

```console
POST _reindex
{
  "source": {
    "remote": {
      "host": "<OTHER_HOST_URL>",
      "username": "user",
      "password": "pass"
    },
    "index": "my-index-000001",
    "query": {
      "match": {
        "test": "data"
      }
    }
  },
  "dest": {
    "index": "my-new-index-000001"
  }
}
```
Image

Expected behavior

it renders

Steps to reproduce

No response

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions