Skip to content

Markdown output drops code callout markers and their explanatory list #5025

Backlog

Description

@georgewallace

Summary

The markdown version of a page (the .md URL, which feeds the LLM markdown and copy-as-markdown features) loses code callouts. The # <1> style markers are removed from the code block, and the numbered list that explains each callout is dropped from the page. The HTML version renders both correctly.

Repro

Page: https://www.elastic.co/docs/deploy-manage/deploy/cloud-on-k8s/volume-claim-templates

Source (deploy-manage/deploy/cloud-on-k8s/volume-claim-templates.md in elastic/docs-content):

```yaml
    volumeClaimTemplates:
    - metadata:
        name: elasticsearch-data # <1>
      spec:
        ...
        storageClassName: standard # <2>
```

1. Do not change this name unless you set up a volume mount for the data path. ...
2. `standard` is an example. Replace it with the name of a storage class that exists in your Kubernetes cluster, ...

HTML: renders two code-callout elements (data-index 1 and 2) with the explanations.

Markdown (.md URL): the code block contains name: elasticsearch-data and storageClassName: standard with no markers, and the two numbered explanation items do not appear anywhere in the output.

Also seen on deploy-manage/users-roles/cluster-or-deployment-auth/saml-signing-encryption, where the HTML has a callout and the markdown has neither markers nor list.

Expected

The markdown output keeps the callout markers in the code block and the numbered explanations after it, matching the source.

Actual

Markers and explanations are both removed.

Impact

Readers of the markdown version, including LLMs and anyone using copy as markdown, lose caveats attached to specific lines. In the example above, they would not learn that the volume claim name must stay elasticsearch-data, or that standard is only an example storage class.

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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