mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-27 18:56:34 +00:00
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:
@@ -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 $< > $@
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user