aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorWilliam David Mayo ("Dave") <pobocks@gmail.com>2014-08-10 18:21:37 -0400
committerWilliam David Mayo ("Dave") <pobocks@gmail.com>2014-08-10 18:21:37 -0400
commitf085c9e3c248358cb5bd06b1d8495fa8b0f35638 (patch)
treedf0d458fb0c47f3549d5c6bcb60d1d65e6a75e66 /README.md
parent4ab83795aa00b0f8ff6ad97ca0d63e91ebe09628 (diff)
parente47b30a56de5fee21a029c5e9d168be744949d92 (diff)
downloademmet-mode-f085c9e3c248358cb5bd06b1d8495fa8b0f35638.tar.lz
emmet-mode-f085c9e3c248358cb5bd06b1d8495fa8b0f35638.tar.xz
emmet-mode-f085c9e3c248358cb5bd06b1d8495fa8b0f35638.zip
Merge pull request #30 from pobocks/issue_28
Issue 28 - This seems to work better and fail on less cases than the current code, anyway. I've seen some pausing when expanding hiccup inside Clojure code, but the existing code fails entirely in the same spot, so it's an improvement.
Diffstat (limited to 'README.md')
-rw-r--r--README.md52
1 files changed, 26 insertions, 26 deletions
diff --git a/README.md b/README.md
index 69211b3..dea9958 100644
--- a/README.md
+++ b/README.md
@@ -93,7 +93,7 @@ you'll transform your snippet into the appropriate tag structure.
#### Self-closing tags
- input type=text <input type="text" name="" value=""/>
+ input[type=text] <input type="text" name="" value=""/>
img <img src="" alt=""/>
img>metadata/*2 <img src="" alt="">
<metadata/>
@@ -137,7 +137,7 @@ you'll transform your snippet into the appropriate tag structure.
<ol>
<li></li>
</ol>
- ul#q.x.y m=l+ <ul id="q" class="x y" m="l">
+ ul#q.x.y[m=l] <ul id="q" class="x y" m="l">
<li></li>
</ul>
@@ -267,27 +267,27 @@ you'll transform your snippet into the appropriate tag structure.
#### Properties
- b x <b x=""></b>
- b x= <b x=""></b>
- b x="" <b x=""></b>
- b x=y <b x="y"></b>
- b x="y" <b x="y"></b>
- b x="()" <b x="()"></b>
- b x m <b x="" m=""></b>
- b x= m="" <b x="" m=""></b>
- b x=y m=l <b x="y" m="l"></b>
- b/ x=y m=l <b x="y" m="l"/>
- b#foo x=y m=l <b id="foo" x="y" m="l"></b>
- b.foo x=y m=l <b class="foo" x="y" m="l"></b>
- b#foo.bar.mu x=y m=l <b id="foo" class="bar mu" x="y" m="l"></b>
- b/#foo.bar.mu x=y m=l <b id="foo" class="bar mu" x="y" m="l"/>
- b x=y+b <b x="y"></b>
+ b[x] <b x=""></b>
+ b[x=] <b x=""></b>
+ b[x=""] <b x=""></b>
+ b[x=y] <b x="y"></b>
+ b[x="y"] <b x="y"></b>
+ b[x="()"] <b x="()"></b>
+ b[x m] <b x="" m=""></b>
+ b[x= m=""] <b x="" m=""></b>
+ b[x=y m=l] <b x="y" m="l"></b>
+ b/[x=y m=l] <b x="y" m="l"/>
+ b#foo[x=y m=l] <b id="foo" x="y" m="l"></b>
+ b.foo[x=y m=l] <b class="foo" x="y" m="l"></b>
+ b#foo.bar.mu[x=y m=l] <b id="foo" class="bar mu" x="y" m="l"></b>
+ b/#foo.bar.mu[x=y m=l] <b id="foo" class="bar mu" x="y" m="l"/>
+ b[x=y]+b <b x="y"></b>
<b></b>
- b x=y+b x=y <b x="y"></b>
+ b[x=y]+b[x=y] <b x="y"></b>
<b x="y"></b>
- b x=y>b <b x="y"><b></b></b>
- b x=y>b x=y <b x="y"><b x="y"></b></b>
- b x=y>b x=y+c x=y <b x="y">
+ b[x=y]>b <b x="y"><b></b></b>
+ b[x=y]>b[x=y] <b x="y"><b x="y"></b></b>
+ b[x=y]>b[x=y]+c[x=y] <b x="y">
<b x="y"></b>
<c x="y"></c>
</b>
@@ -387,11 +387,11 @@ you'll transform your snippet into the appropriate tag structure.
a|haml %a
a#q.x.y.z|haml %a#q.x.y.z
- a#q.x x=y m=l|haml %a#q.x{:x => "y", :m => "l"}
+ a#q.x[x=y m=l]|haml %a#q.x{:x => "y", :m => "l"}
div|haml %div
div.footer|haml .footer
.footer|haml .footer
- p>{txt}+a href=#+br|haml %p
+ p>{txt}+a[href=#]+br|haml %p
txt
%a{:href => "#"}
%br
@@ -400,9 +400,9 @@ you'll transform your snippet into the appropriate tag structure.
a|hic [:a]
a#q.x.y.z|hic [:a#q.x.y.z]
- a#q.x x=y m=l|hic [:a#q.x {:x "y", :m "l"}]
+ a#q.x[x=y m=l]|hic [:a#q.x {:x "y", :m "l"}]
.footer|hic [:div.footer]
- p>a href=#+br|hic [:p
+ p>a[href=#]+br|hic [:p
[:a {:href "#"}]
[:br]]
#q>(a*2>b{x})+p>b|hic [:div#q
@@ -413,7 +413,7 @@ you'll transform your snippet into the appropriate tag structure.
#### Filter: escape
- script src=&quot;|e &lt;script src="&amp;quot;"&gt;
+ script[src=&quot;]|e &lt;script src="&amp;quot;"&gt;
&lt;/script&gt;
#### Aliases