Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code-group components cannot render properly in some cases. #2641

Closed
1 task done
liyuj opened this issue Oct 4, 2020 · 3 comments
Closed
1 task done

code-group components cannot render properly in some cases. #2641

liyuj opened this issue Oct 4, 2020 · 3 comments
Labels
need feedback Awaiting author response

Comments

@liyuj
Copy link

liyuj commented Oct 4, 2020

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

image

What is expected?

Normal rendering can be done

What is actually happening?

Other relevant information

  • Output of npx vuepress info in my VuePress project:
@d-pollard
Copy link
Collaborator

Hello liyujue,

Looks like you're trying to render an unsupported format inside of the code block. Make sure to wrap the content in ```'s

@d-pollard d-pollard added the need feedback Awaiting author response label Oct 12, 2020
@liyuj
Copy link
Author

liyuj commented Oct 13, 2020 via email

@bencodezen
Copy link
Member

Thanks for your feedback @liyuj! While I understand the desire to add any markdown inside of the component, the design of this component is intentional for just code usage. It's certainly tempting to expand the scope of the component, but to keep the maintenance of the default theme possible, we think it's important to keep it focused on code only.

If you'd like to use the tab format for other content though, we'd recommend creating your own global component that is based on the CodeGroup component so you can customize it to your needs. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need feedback Awaiting author response
Projects
None yet
Development

No branches or pull requests

3 participants