Closed brc-dd closed 1 year ago
The width of header looks a bit weird
I've actually took most of the UI from what we have in @vue/theme (https://github.com/vuejs/theme/pull/50, a demo is here).
/cc @kiaking Your inputs? Should we change the UI?
@brc-dd yeah I'll take this one over! I would like to adjust a just bit on tabs 👀 I'll work this on today or tomorrow 👍
My thoughts on UI: https://github.com/vuejs/vitepress/issues/728#issuecomment-1296586489
Wow! Will this feature appear in the next release? So I don't have to use the garbage code I wrote 👀
Hopefully! Sorry it's taking time but I will work on it.
OK finally! I've modified the style to be:
I love this style 😍
This would completely replace the need of markdown-it-codetabs which I currently use in all my vitepress projects. Big thumbs up!
How can I import code snippets into codeblocks? I just tested the newly added codeblock, but I cannot add code snippets like it is possible with single code blocks. Can this functionality please be added into codeblocks as well, if it is not currently possible? Codeblocks hold way more code than single code components which results in a very messy markdown if imports are not possible
Glad to see this feature got merged!
I have the same problem with this feature as @MarkusKeck, code snippets are not working and I think it is a core feature with large code blocks or change-prone ones, is there a workaround or something to have them working? Thanks in advance!
@dmoyadev I use the @include statement and have all other markup inside the code itself. Not pretty but the best solution I came up with. I hope this will be supported at one point. This would allow for a clean code snippet file.
::: code-group
<!--@include: ./../../../snippets/BubbleSort.java-->
:::
The code fle itself (changed the ` to ' so it gets displayed correctly)
'''java [BubbleSort.java]
package net.bitelligence.exercise.sorting;
public class BubbleSort {
public int[] bubbleSort(int[] numbers) {
}
}
'''
fixes #728 closes #1242
Huge thanks to @VoVAllen!
TODO: