question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This issue tracks HTML issues that should be done before the public release.


Please take a look at #5259, which should address this issue.


Try out the current experimental HTML support:

yarn add prettier/prettier
yarn prettier filename.html 

or preview playground in #5135.


icon description
✔️ merged
👀 in review
🔜 #5259
🏃 WIP

Features

  • support front matter
  • support pragma
    • 🔜
  • unambiguous/XHTML-compatible output for void tags (e.g., <br />) (reason)
  • html in js template literal (comment)
    • 🔜
  • whitespace-sensitive formatting (comment)
  • recognize CDATA (comment)
    • 🔜
  • template languages
    • format interpolation {{ js expression }} (comment)
      • 🔜
      • maybe support bracketSpacing? (no, it’s not supported in JSX)
    • Angular
      • format attribute binding syntax (*ngIf, [target], (target), [(target)])
        • 🔜
      • format inline template (@Component({ template: `html` }))
        • 🔜
    • Vue
      • format attribute binding syntax (:class, v-if, v-bind:id, @click)
        • 🔜

Bug fixes

Chores

(If you report an issue here, I’ll update the list and hide your comment to keep this thread clear.)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:53
  • Comments:91 (35 by maintainers)

github_iconTop GitHub Comments

15reactions
michaeljotacommented, Sep 25, 2018

@ikatyang I just want to say thank you for all of this work. After all this time we finally will have HTML support and is thanks to you.

9reactions
michaeljotacommented, Sep 19, 2018

If you ask me, I prefer no to worry about rules or plugins, but to have a consistent format in all my files. As I do in JS. Sure, I don’t like some things Prettier does, but I learn to not care, because its better to no think about it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get TODO comments in HTML files to show up in ...
Simple answer: NO. From: How to: Create Task List Comments. The Task List displays comments in your code that begin with the comment...
Read more >
How To Create a To Do List - W3Schools
Create The To Do List. Step 1) Add HTML: Example. <div id="myDIV" class= ...
Read more >
TODO comments | WebStorm Documentation - JetBrains
View the list of TODO items in the TODO tool window. The tool window consists of four tabs where WebStorm shows TODO items...
Read more >
Making a ToDo List with HTML, CSS and Javascript - Medium
One of the popular projects in terms of understanding the object & class structure in Javascript is ToDo List.
Read more >
Todo List using HTML CSS & JavaScript - YouTube
Todo List using HTML CSS & JavaScript | Todo List using JavaScriptIn this video, I have shown you how to create a todo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found