Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

<BlockComponent> in Markdown is rendered, should stay code #50

Open
duerrsimon opened this issue Feb 28, 2023 · 0 comments
Open

<BlockComponent> in Markdown is rendered, should stay code #50

duerrsimon opened this issue Feb 28, 2023 · 0 comments

Comments

@duerrsimon
Copy link

duerrsimon commented Feb 28, 2023

Wanted to showcase the custom block I created and how to embed it in the README of the repo.
With the below Markdown I would expect the BlockComponent to be rendered once, and once the code being displayed. Instead the BlockComponent inside the Markdown code block is also interpreted.
See: https://blocks.githubnext.com/duerrsimon/gradio-block/blob/main/README.md?blockKey=githubnext__blocks-examples__markdown-block&fileRef=

<BlockComponent block={{"owner":"duerrsimon","repo":"gradio-block","id":"hfspaces-block","type":"file"}} context={{"repo":"gradio-block","owner":"duerrsimon","path":"example/hf.yml","sha":"main","file":"README.md"}} />

Demo

<BlockComponent block={{"owner":"duerrsimon","repo":"gradio-block","id":"hfspaces-block","type":"file"}} context={{"repo":"gradio-block","owner":"duerrsimon","path":"example/hf.yml","sha":"main","file":"README.md"}} />

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant