Vetur: Handle tag-stuff for template in vue-html

Created on 21 Feb 2017  路  6Comments  路  Source: vuejs/vetur

bug

Most helpful comment

Try upgrading to 0.3.8.

All 6 comments

another bug about template tag.

<template >        //extra space
  <div>
  </div>
</template>
------------------------
<template lang="html">
  <div>
  </div>
</template>
------------------------
these will break highlight

but `<template lang="pug">` is ok..



Both cases aren't in Vue's SFC spec so I don't want to support them.
Likewise, <TEMPLATE>, <template lang="PUG"> etc won't be supported.

Alright although I don't intend to support <template > or <template lang="html">, they won't break syntax highlighting in the next version.

I use element get same bug:
html <template> <el-table> <el-table-column> <template> <p></p> </template> <!-- no highlight start --> <el-table-column> <el-table> </template> <!-- no highlight end -->
WX20170223-151545.png

Try upgrading to 0.3.8.

Fixed the issue! Thanks for fixing this so fast.

Was this page helpful?
0 / 5 - 0 ratings