Repository navigation
Fix applies_to rendering in LLM readable markdown output - #2451
Merged
Merged
Conversation
reakaleek
commented
Jan 12, 2026
| <span class="admonition-title">Warning</span> | ||
| <span class="applies applies-admonition"> | ||
| <applies-to-popover badge-key="Serverless" badge-version="8.0+" lifecycle-class="ga" lifecycle-name="GA" show-lifecycle-name="false" show-version="true" has-multiple-lifecycles="false" popover-data="{"productDescription":"\u003Cstrong\u003EElastic Cloud Serverless\u003C/strong\u003E projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.","availabilityItems":[{"text":"Generally available in 8.0\u002B","lifecycleDescription":"This functionality is generally available and ready for production usage."}],"additionalInfo":"Serverless interfaces and procedures might differ from classic Elastic Stack deployments.","showVersionNote":false,"versionNote":null}" show-popover="true" is-inline="true"></applies-to-popover> | ||
| <applies-to-popover badge-key="Serverless" lifecycle-class="ga" lifecycle-name="GA" show-lifecycle-name="false" show-version="false" has-multiple-lifecycles="false" popover-data="{"productDescription":"\u003Cstrong\u003EElastic Cloud Serverless\u003C/strong\u003E projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.","availabilityItems":[{"text":"Generally available","lifecycleDescription":"This functionality is generally available and ready for production usage."}],"additionalInfo":"Serverless interfaces and procedures might differ from classic Elastic Stack deployments.","showVersionNote":false,"versionNote":null}" show-popover="true" is-inline="true"></applies-to-popover> |
Member
Author
There was a problem hiding this comment.
This changed because I changed the base version in the test fixtures to "allVersions"
applies_to rendering in LLM readabile markdown outputapplies_to rendering in LLM readable markdown output
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Member
Author
|
You can find examples in |
Mpdreamz
approved these changes
Jan 12, 2026
3 of 4 tasks
13 of 15 tasks
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds human-readable rendering of
applies_tometadata in LLM markdown output. Previously, this information was only available in HTML popovers.Why
LLMs need clear, structured applicability information (product availability, versions, lifecycle status) to answer questions accurately about feature availability across different Elastic products and versions.
How
LlmApplicabilityHelperto convertApplicableToobjects into human-readable strings (e.g., "Elastic Stack: Generally available since 7.3"){applies_to}roles →<applies-to>Elastic Stack: Generally available since 7.3</applies-to>applies-to="Elastic Stack: Generally available since 8.0"<applies-to>list formatExamples
Inline role:
Input: This feature {applies_to}`stack: ga 7.3` is available. Output: This feature <applies-to>Elastic Stack: Generally available since 7.3</applies-to> is available.Admonition directive:
Input: :::{note} :applies_to: stack: ga, serverless: ga This applies to both. ::: Output: <note applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available in 8.0+"> This applies to both. </note>Code block directive:
Input: ```{applies_to} stack: ga 7.0 serverless: ga ``` Output: <applies-to> - Elastic Cloud Serverless: Generally available - Elastic Stack: Generally available since 7.0 </applies-to>Frontmatter:
Input: --- applies_to: stack: ga 9.1 --- Output: --- title: Page Title applies_to: - Elastic Stack: Generally available since 9.1 ---