Skip to content

Contents of code block are truncated when an annotation is used #577

@shainaraskas

Description

@shainaraskas

Describe the bug

When I use the following code and annotate the url value with a 2, the url value is truncated:

xpack:
  security:
    authc:
      realms:
        active_directory:
          my_ad:
            order: 0
            domain_name: example.com <1>
            url: ldaps://dc1.ad.example.com:3269, ldaps://dc2.ad.example.com:3269 <2>
            load_balance:
              type: "round_robin" <3>
Image

When I remove the annotation, the content is not truncated:

xpack:
  security:
    authc:
      realms:
        active_directory:
          my_ad:
            order: 0
            domain_name: example.com <1>
            url: ldaps://dc1.ad.example.com:3269, ldaps://dc2.ad.example.com:3269
            load_balance:
              type: "round_robin" <3>
Image

seems to be tied to the contents of this line specifically. if I put it in its own snippet, it fails in the same way

url: ldaps://dc1.ad.example.com:3269, ldaps://dc2.ad.example.com:3269 <2>
Image

and it doesn't have to be a <2>:

url: ldaps://dc1.ad.example.com:3269, ldaps://dc2.ad.example.com:3269 <1>
Image

Expected behavior

annotations do not impact code block contents (other than adding annotations)

Steps to reproduce

see above

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