elastic / elastic/docs-builder

"On This Page" does not render X^Y^ (X to the power Y) correctly

Open
#1,281 5 comments 0 reactions 0 assignees View on GitHub
ai-triaged bug low hanging fruit
Dominant language
C#
Stars
24
Forks
44
Avg merge
1d 3h
Merged PRs (30d)
172

Description

### Describe the bug

When a header uses the formula in the issue title, for example, 2^32^ (2 to the power 32), the expression is rendered correctly in the section title but not in the OTP. The expression is also rendered correctly in paragraph text.

Example: https://www.elastic.co/docs/explore-analyze/machine-learning/data-frame-analytics/ml-dfa-limitations#dfa-training-docs

Image

Image

### Expected behavior

Render the expression in the OTP the same way as it appears in the paragraph text or the section title.

### Steps to reproduce

_No response_

### Tooling

- [x] docs-builder
- [ ] migration tooling
- [ ] I'm not sure

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.