JSX snippet source code included at the start of "Copy page" output and other contextual options #1934
danharrin
started this conversation in
Bugs & Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I quite heavily use JSX snippets in my docs pages to provide interactive content. However, when I use the "Copy page" feature and other contextual options like "View as Markdown", the source for these JSX components gets included right at the top of the content.
In my opinion, if a snippet is MDX, it should be included in the Markdown, as it is likely reused content. However, if it is JSX, it is likely an interactive UI component that should not be included.
Alternatively, if JSX content must be included by default, I would like to request a way to opt out of all snippets being included, or at least a way to move the source code of the snippets to the end of the content instead of the start.
Beta Was this translation helpful? Give feedback.
All reactions