Website demos: removed escaping of -.

Instead, don't use -S for examples.html.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1491 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher
2008-11-07 16:32:15 +00:00
parent c1272dee93
commit 5cd286aa45
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -15,6 +15,9 @@ examples.txt : mkdemos.pl config.xsl S5DEMO README demos math.text
do highlight -k monospace -u utf-8 --style emacs $$file > $$file.html; \
done
examples.html : examples.txt
$(PANDOC_PATH)/pandoc -s -H css -A footer.html $< > $@
index.html : index.txt css
$(MAKEPAGE) --toc $< > $@
-1
View File
@@ -21,7 +21,6 @@ while (<IN>) {
system "$commandExec";
$line = $command;
$line =~ s/@@([^@]*)@@/<a href="$1">$1<\/a>/g;
$line =~ s/-/\\-/g; # to prevent smart dashes!
$line =~ s/^(.*)$/ <pre><code>$1<\/code><\/pre>/g;
if ( $line =~ /(example\d+\.html)<\/a><\/code>/m ) {
$line .= "\n (View [`$1` as a web page]($1).)\n";