emmetio / abbreviation Goto Github PK
View Code? Open in Web Editor NEWEmmet standalone abbreviation parser (WIP)
License: MIT License
Emmet standalone abbreviation parser (WIP)
License: MIT License
With the advent of utility first css frameworks like tachyon and tailwindcss, class names like width-1/2 etc are very common now a days.
emmetio doesn't seem to provide a filter for such names. Hence no support in vscode
However PHPStorm is already supporting the use of such class names in emmet
div.width1/2.relative.p-4
expands to
<div class="width-1/2 relative p-4"></div>
in PHPStorm
Support for such class names via emmetio is essential so to say in the world of utility first css frameworks.
Request you to consider supporting class names like width-1/2
with a /
character soon to enable easy use of utility first frameworks.
Thanks
I am looking for a tool just like this to expand emmet into hyperscript, but I can't make sense of the interface here. Is there any documentation for how to access all of the data the node contains?
p{this doesn't work}
has a single quote in the text part of the abbreviation and this module fails to parse it.
Root cause: The eatQuoted
function in the stream-reader-utils
modules throws an exception as it cannot find the closing quotes.
This exception then bubbles up via the abbreviation
module.
Failure to find closing quotes inside the text part of the abbreviation should not fail parsing
div[[a]="b"]
expands correctly to <div [a]="b"></div>
when trying out in https://docs.emmet.io
But an error gets thrown when this abbreviation is being parsed by this module.
@sergeche #7 was my proposed solution.
You mentioned a new approach in
#7 (comment)
Is there any update on your approach?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.