View Single Post
Old 02-20-2013, 11:54 PM   #1
carlosbcg
Member
carlosbcg began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
Anybody here know how to use pandoc to output XHTML?

I am creating an EPUB3 which requires "serialized HTML5" (I think that is XHTML5).

Anyway I use a program called pandoc to output the HTML (which I want to have it be XHTML5).

The command line I presently use is:

Code:
pandoc --strict some.md -o some.html
In other words I go from an .md file containing markdown to a file containing...well...what seems like regular HTML.

Now if that all makes sense...therein lies my dilemna.

How do I output XHTML and NOT regular ol HTML using pandoc?

I've Googled and Googled yesterday and today and can't find a thing on this.

I know that the differences between HTML and XHTML5 are pretty minor really (for purposes of P tags and such) but still...I prefer to have a program like pandoc spit out properly formed XHTML instead of going through by hand to convert HTML to XHTML.

If pandoc doesn't cut it as far as outputting XHTML anybody know of any other wonderful program like pandoc that will?

Anybody?

Carlos

PS. Hmm...I wonder what is with the huge space the forum puts between the word "Code" and the code? Oops...the huge space went away after I edited and added this PS. Hmm...

Last edited by carlosbcg; 02-20-2013 at 11:56 PM.
carlosbcg is offline   Reply With Quote