1. lowercase tag names for better compatability with anal-retentive

newer web standards.
2. clean up the usage comment and example in the header.
This commit is contained in:
David Parsons
2008-01-13 11:27:46 -08:00
parent bbbf1d03e7
commit 20dc07feb2
+15 -10
View File
@@ -1,13 +1,18 @@
/*
* mkd2html: parse a markdown input file and generate a web page.
*
* usage: mkd2html [header-fields] / [signature fields] < markdown > html
* usage: mkd2html [options] filename
* or mkd2html [options] < markdown > html
*
* options
* -css css-file
* -header line-to-add-to-<HEADER>
* -footer line-to-add-before-</BODY>
*
* example:
*
* mkd2html ' <STYLE type="text/css">@import url(pages.css); </STYLE>' /
* '<HR>' '<P ALIGN=RIGHT>--generated by mk2html</P>' < text > html
*
* mkd2html -cs /~orc/pages.css syntax
* ( read syntax OR syntax.text, write syntax.html )
*/
/*
* Copyright (C) 2007 David L Parsons.
@@ -141,8 +146,8 @@ char **argv;
fprintf(output,
"<!doctype html public \"-//W3C//DTD HTML 4.0 Transitional //EN\">\n"
"<HTML>\n"
"<HEAD>\n"
"<html>\n"
"<head>\n"
" <meta name=\"GENERATOR\" content=\"mkd2html %s\">\n", version);
fprintf(output," <meta http-equiv=\"Content-Type\"\n"
@@ -160,8 +165,8 @@ char **argv;
}
for ( i=0; i < S(headers); i++ )
fprintf(output, " %s\n", T(headers)[i]);
fprintf(output, "</HEAD>\n"
"<BODY>\n");
fprintf(output, "</head>\n"
"<body>\n");
/* print the compiled body */
@@ -170,8 +175,8 @@ char **argv;
for ( i=0; i < S(footers); i++ )
fprintf(output, "%s\n", T(footers)[i]);
fprintf(output, "</BODY>\n"
"</HTML>\n");
fprintf(output, "</body>\n"
"</html>\n");
mkd_cleanup(mmiot);
exit(0);