diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-10-26 18:02:24 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-10-26 18:02:24 -0700 |
commit | ee570cab6af160bd50262f81f0e1f17e988b6e45 (patch) | |
tree | fe5251d06b7f0d55c479dff104baaab061544efb | |
parent | c5a0fdf28119c60baf755ce9de676c0d7b98740a (diff) |
spec2md.pl: Make Example numbers into links.
-rw-r--r-- | spec2md.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ while (<STDIN>) { if ($stage == 0) { $example++; print "\n<div class=\"example\" id=\"example-$example\" data-section=\"$section\">\n"; - print "<div class=\"examplenum\">Example $example</div>\n\n"; + print "<div class=\"examplenum\"><a href=\"#example-$example\">Example $example</a></div>\n\n"; print "````````````````````````````````````````````````````````` markdown\n"; } elsif ($stage == 1) { print "`````````````````````````````````````````````````````````\n\n"; |