File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -339,13 +339,6 @@ multi sub node2html(Pod::Block::Named $node) {
339
339
return node2html($ node . contents);
340
340
}
341
341
when ' para' { return node2html($ node . contents[0 ]); }
342
- when ' defn' {
343
- return " <dl>" ~
344
- " <dt>" ~ node2html($ node . contents[0 ]. contents[1 ]) ~ " </dt>" ~
345
- " <dd>" ~ node2html($ node . contents[0 ]. contents[2 .. * -1 ]) ~ " </dd>" ~
346
- " </dl>\n " ~
347
- node2html($ node . contents[1 .. * -1 ]);
348
- }
349
342
when ' Image' {
350
343
my $ url ;
351
344
if $ node . contents == 1 {
@@ -438,6 +431,14 @@ multi sub node2html(Pod::Config $node) {
438
431
return ' ' ;
439
432
}
440
433
434
+ multi sub node2html(Pod::Defn $ node ) {
435
+
436
+ return " <dl>" ~
437
+ " <dt>" ~ node2html($ node . term) ~ " </dt>" ~
438
+ " <dd>" ~ node2html($ node . contents) ~ " </dd>" ~
439
+ " </dl>\n " ;
440
+ }
441
+
441
442
# TODO: would like some way to wrap these and the following content in a <section>; this might be
442
443
# the same way we get lists working...
443
444
multi sub node2html(Pod::Heading $ node ) {
You can’t perform that action at this time.
0 commit comments