posthog.com icon indicating copy to clipboard operation
posthog.com copied to clipboard

Bug Report: Copy as Markdown does not copy the doc contents

Open Eric162 opened this issue 1 month ago • 0 comments

Report

Tell us what went wrong and how we can reproduce it. Include URLs or screenshots if helpful.

The Copy as Markdown button downloads the md file, not the actual contents. E.g. on https://posthog.com/docs/llm-analytics/installation/vercel-ai

Image

it just downloads the mdx file contents instead of the text on the page.

# Vercel AI LLM analytics installation

import { VercelAIInstallation } from 'onboarding/llm-analytics/vercel-ai.tsx'
import { OnboardingContentWrapper } from 'components/Docs/OnboardingContentWrapper'
<OnboardingContentWrapper snippets={{ NotableGenerationProperties }}>
    <VercelAIInstallation />
</OnboardingContentWrapper>

Technical info

Tell us what browser and device you use, as well as any other info that may be relevant.

MacOs Chrome (not really relevant afaict)

Expected outcome, or solution

What did you expect to happen, instead of this?

Expected to download the actual contents more like:

# Install the PostHog SDK
...

Eric162 avatar Dec 08 '25 20:12 Eric162