Skip to content

[react-markdown] How to ember GitHub gist in the react-markdown component #894

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

You must be logged in to vote

It should be possible,

it's hard to comment on the approach you've tried given you haven't provided a lot of details.
See https://github.com/remarkjs/.github/blob/main/support.md#asking-quality-questions for some guidance on framing the question so others can help, and if you want help on your specific approach consider sharing a codesandbox with a runnable example https://codesandbox.io/s/react-markdown-debug-9n4eg is a good starter.


For a recommended approach, it sounds like you want to embed a Gist part way in a document?
If so, consider using directives https://github.com/remarkjs/remark-directive

an example document could look something like:

# Code Example

::gist[ES Modules]{#a397…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants