Skip to content

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

@Eric162

Description

@Eric162

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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions