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

Colon is missing when using in Vue templates #78

Closed
2 of 5 tasks
ghost opened this issue Nov 28, 2018 · 0 comments
Closed
2 of 5 tasks

Colon is missing when using in Vue templates #78

ghost opened this issue Nov 28, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 28, 2018

🐛 Bug Report

Colon is missing when using special scenes in Vue templates

To Reproduce

Steps to reproduce the behavior:

<div id="app">
  <prism-editor :xlink:href="'myHref'" />
</div>

Expected behavior

<div id="app">
  <prism-editor :xlink:href="'myHref'"/>
</div>

Actual result

<div id="app">
  <!-- : before xlink is missing here -->
  <prism-editor xlink:href="'myHref'"/>
</div>

Context

  • Angular
  • Svelte
  • Vue
  • Riot
  • HTML5 only

Your Environment

  • Prettyhtml version: https://prettyhtml.netlify.com/ OR vetur (vs code plugin "vetur.format.defaultFormatter.html": "prettyhtml")
  • NodeJs version:
  • Environment name and version:
  • Operating System and version:
@ghost ghost changed the title Colon is missing when using special scenes in Vue templates Colon is missing when using in Vue templates Nov 28, 2018
StarpTech added a commit that referenced this issue Dec 4, 2018
StarpTech added a commit that referenced this issue Dec 10, 2018
* first draft of expression parser

* fix preserve whitespace, fix unstable formatting result when node was broken after first text element

* fix #78

* v0.8.5

* simplify formatter rules

* align first text node

* reset example

* remove unused var

* reimplement formatting rule for condition comments

* remove invalid comments

* v0.8.6

* clean attribute expression

* update readme

* update readme

* Merge branch 'master' into feature/#26_temlate_expr_parser

# Conflicts:
#	packages/prettyhtml-formatter/package-lock.json

* fix typo

* fix merge, cleanup comments

* dont enable attribute clean up by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants