Repository navigation
Description
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
- Create button group with different actions for LLM markdown #1710: button group with different actions for LLM markdown
- In markdown output, some table cells have their content duplicated, even tripled sometimes #2316: markdown output duplicates some table cell content (another markdown-export fidelity bug)
- Code annotations don't render if the rest of the line is "empty" #3141 and Code callout markers with no space before them are silently ignored #4514: code callout rendering issues in HTML
Activity