Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.

Commit

Permalink
Add kbd
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Sep 10, 2012
1 parent 7ada6c5 commit 8bff247
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions doc/SYNTAX.html
Expand Up @@ -180,7 +180,7 @@ <h2>ATTRIBUTES (Maruku)</h2>
<h2>AUTO-LINK</h2>
<hr>
<p><a href="http://foo.com/">http://foo.com/</a> </p>
<a href="&#109;&#97;&#105;&#x6c;&#x74;&#x6f;&#x3a;&#102;&#111;&#x6f;&#x40;&#x62;&#97;&#x72;&#46;&#99;&#x6f;&#x6d;">&#102;&#111;&#x6f;&#x40;&#x62;&#97;&#x72;&#46;&#99;&#x6f;&#x6d;</a>
<a href="&#x6d;&#97;&#105;&#108;&#116;&#x6f;&#58;&#102;&#x6f;&#x6f;&#64;&#x62;&#x61;&#114;&#x2e;&#99;&#111;&#x6d;">&#102;&#x6f;&#x6f;&#64;&#x62;&#x61;&#114;&#x2e;&#99;&#111;&#x6d;</a>

<h2>ENCODING</h2>
<hr>
Expand Down Expand Up @@ -208,11 +208,11 @@ <h2>INLINE HTML</h2>

<h2>Keybindings</h2>
<hr>
<p>To have fun, press: <abbr title="Ctrl-Option-Down">&#708;-&#x2325;-Down</abbr>. Or, you know, don&#39;t.</p>
<div class="alert alert-success"><h4 class="alert-heading">Note: </h4><abbr title="Ctrl-K">&#708;-K</abbr>
<p>To have fun, press: <kbd><abbr title="Ctrl-Option-Down">&#708;-&#x2325;-Down</abbr></kbd>. Or, you know, don&#39;t.</p>
<div class="alert alert-success"><h4 class="alert-heading">Note: </h4><kbd><abbr title="Ctrl-K">&#708;-K</abbr></kbd>

</div>
<p><abbr title="Command-X">&#x2318;-X</abbr></p>
<p><kbd><abbr title="Command-X">&#x2318;-X</abbr></kbd></p>
<p><em>Your Name</em>, Setup, Develop, Stuff</p>
<h2>Menus</h2>
<hr>
Expand Down
4 changes: 2 additions & 2 deletions lib/namp.js
Expand Up @@ -594,9 +594,9 @@ inline.lexer = function(src) {
return keyDescribe[char] !== undefined ? keyDescribe[char].unicode : char
});

out += '<abbr title="' + title.join("-") + '">'
out += '<kbd class="keyboard-key nowrap"><abbr title="' + title.join("-") + '">'
+ cap[1].join("-")
+ '</abbr>';
+ '</abbr></kbd>';
continue;
}

Expand Down

0 comments on commit 8bff247

Please sign in to comment.