dewfall123 / ruabick

Dumi like tool based on vitepress.
https://dewfall123.github.io/ruabick/
144 stars 32 forks source link

fix: render failed when use demo component with a newline #17

Closed yue7872 closed 1 year ago

yue7872 commented 2 years ago

render correctly:

<demo src="../demo.vue" title="Demo block" desc="use demo"></demo>

but when there is a newline rather than space after <demo, it won't be rendered

<demo
    src="../demo.vue"
    title="Demo block"
    desc="use demo"
></demo>
yue7872 commented 2 years ago

将生成的文件统一放在dist目录下 #18

dewfall123 commented 2 years ago
<demo
    src="../demo.vue"
    title="Demo block"
    desc="use demo"
></demo>

这样写渲染没问题吧?

yue7872 commented 2 years ago
<demo
  src="../demo.vue"
  title="Demo block"
  desc="use demo"
></demo>

这样写渲染没问题吧?

@dewfall123 有的 可以查看这个仓库: https://github.com/yue7872/vitepress-demo/blob/4d32f3ccd309cdcd635aad5afb99db9ca9666ab6/docs/common/demo.md?plain=1#L14

dewfall123 commented 1 year ago

感谢pr,改了下写法。 生成的文件改到dist这个方法不是很好,后续可能找下其它解决方案(有时间的话:relieved:)。