View Single Post
Old 02-21-2013, 02:08 AM   #2
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Try running it through a validator. It will probably "just work". Most software that outputs HTML does so using an XML-compatible form, or very nearly so. The likely exceptions can usually be fixed with a simple regular expression or other substitution, e.g.

Code:
cat file.html | sed 's/<hr>/<hr \/>/g'  > newfile.html
or, in English, replace <hr> with <hr />. That's just about the only difference you're likely to run into. That and possibly the need to add </link> closing tags if the files include any CSS or </meta> tags if the files include any meta tags.

Ah. According to Pandoc's documentation, its html output mode is actually xhtml 1.0. Weird. So just add -t html and you should be good.

Last edited by dgatwood; 02-21-2013 at 02:10 AM.
dgatwood is offline   Reply With Quote