Vue playground for md-enhance #1923
-
之前说的md增强playground插件的事,我按自己的想法写了一下。 实现代码:https://github.com/FuckDoctors/vuepress-theme-hope/tree/playground 分为两种方式:
两种方式均可个别自定义配置。
@Mister-Hope 大佬看看行不行,看看有啥好的建议或意见。 |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
基本使用: :::: playground Playground demo
::: file App.vue
```vue
<script setup>
import { ref } from "vue";
const msg = ref("Hello World!");
</script>
<template>
<h1>{{ msg }}</h1>
<input v-model="msg" />
</template>
```
:::
:::: 内置模式: :::: playground Internal mode
::: file App.vue
```vue
<script setup>
import { ref } from "vue";
const msg = ref("Hello Playground!");
</script>
<template>
<h1>{{ msg }}</h1>
<input v-model="msg" />
</template>
```
:::
::: settings
```json
{
"mode": "internal"
}
```
:::
:::: |
Beta Was this translation helpful? Give feedback.
-
I think this is great, but I would like to see a more comfortable syntax like codetabs instead of nesting containers. If you finished this feature,just call me and I will merge this in to another branch,band I will make some improvements later. Also a more detailed docs and js docs on interface would be great. |
Beta Was this translation helpful? Give feedback.
-
@Mister-Hope Almost done. I added playground docs and js docs with my poor english. Todo:
Known issues:
|
Beta Was this translation helpful? Give feedback.
-
By the way, I personally prefer to use nested containers, which is normal markdown-like😊. |
Beta Was this translation helpful? Give feedback.
-
Rebuilt in beta99 |
Beta Was this translation helpful? Give feedback.
Rebuilt in beta99