Skip to content

How to get the original text of <pre>? I want to use it for copy function. #1302

Answered by ChristianMurphy
caihai123 asked this question in Q&A
Discussion options

You must be logged in to vote

I'd recommend looking at the solutions in https://github.com/orgs/mdx-js/discussions/1948 which should work here as well.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@caihai123
Comment options

@ChristianMurphy
Comment options

Answer selected by ChristianMurphy
@caihai123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants