From 20dc07feb2966dce8bcb2de0ef14b16d624f1727 Mon Sep 17 00:00:00 2001
From: David Parsons
Date: Sun, 13 Jan 2008 11:27:46 -0800
Subject: [PATCH] 1. lowercase tag names for better compatability with
anal-retentive newer web standards. 2. clean up the usage comment and
example in the header.
---
mkd2html.c | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/mkd2html.c b/mkd2html.c
index ef2100d..849f498 100644
--- a/mkd2html.c
+++ b/mkd2html.c
@@ -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-
+ * -footer line-to-add-before-
\n");
+ fprintf(output, "\n"
+ "\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, "\n"
- "\n");
+ fprintf(output, "
*
* example:
*
- * mkd2html ' ' /
- * '
' '
--generated by mk2html
' < 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,
"\n"
- "\n"
- "
\n"
+ "\n"
+ "
\n"
" \n", version);
fprintf(output," \n"
- "
\n"
+ "