Skip to content

Commit ebe9983

Browse files
committed
Add support for <figure>, <figcaption>
1 parent d5fdbc6 commit ebe9983

File tree

4 files changed

+67
-0
lines changed

4 files changed

+67
-0
lines changed

lib/handlers/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ exports.address =
6767
exports.article =
6868
exports.aside =
6969
exports.body =
70+
exports.figcaption =
71+
exports.figure =
7072
exports.footer =
7173
exports.header =
7274
exports.hgroup =
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<figure>
2+
<img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228">
3+
<figcaption>Fig1. - A view of the pulpit rock in Norway.</figcaption>
4+
</figure>
5+
6+
<figure>
7+
<figcaption>Get browser details using navigator</figcaption>
8+
<pre>function example() {
9+
var txt;
10+
txt = "Browser CodeName: " + navigator.appCodeName;
11+
txt+= "Browser Name: " + navigator.appName;
12+
txt+= "Browser Version: " + navigator.appVersion ;
13+
txt+= "Cookies Enabled: " + navigator.cookieEnabled;
14+
txt+= "Platform: " + navigator.platform;
15+
txt+= "User-agent header: " + navigator.userAgent;
16+
}
17+
</pre>
18+
</figure>
19+
20+
<figure>
21+
<figcaption><cite>Edsger Dijkstra:</cite></figcaption>
22+
<p>"If debugging is the process of removing software bugs,
23+
<br>
24+
then programming must be the process of putting them in"</p>
25+
</figure>
26+
27+
<figure>
28+
<p>
29+
Depression is running through my head,<br>
30+
These thoughts make me think of death,<br>
31+
A darkness which blanks my mind,<br>
32+
A walk through the graveyard, what can I find?…
33+
</p>
34+
<figcaption><cite>Depression</cite>. By: Darren Harris</figcaption>
35+
</figure>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"fragment": true
3+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
![The Pulpit Rock](img_pulpit.jpg)
2+
3+
Fig1. - A view of the pulpit rock in Norway.
4+
5+
Get browser details using navigator
6+
7+
function example() {
8+
var txt;
9+
txt = "Browser CodeName: " + navigator.appCodeName;
10+
txt+= "Browser Name: " + navigator.appName;
11+
txt+= "Browser Version: " + navigator.appVersion ;
12+
txt+= "Cookies Enabled: " + navigator.cookieEnabled;
13+
txt+= "Platform: " + navigator.platform;
14+
txt+= "User-agent header: " + navigator.userAgent;
15+
}
16+
17+
Edsger Dijkstra:
18+
19+
"If debugging is the process of removing software bugs,··
20+
then programming must be the process of putting them in"
21+
22+
Depression is running through my head,··
23+
These thoughts make me think of death,··
24+
A darkness which blanks my mind,··
25+
A walk through the graveyard, what can I find?…
26+
27+
Depression. By: Darren Harris

0 commit comments

Comments
 (0)