MultiMarkdown, perhaps. Will take a bit of configuration of your personal texmf tree to make it seamless, and even then, the document structure looks weird, but valid.
References: MultiMarkdown LaTeX support README
Basic procedure:
Download MMD and the LaTeX support directory.
Install MMD, extract the LaTeX support files into your personal texmf folder (in my case, on TeX Live for Windows, I extracted everything into a texmf\tex\latex\mmd folder under my home directory
Volume in drive C has no label.
Volume Serial Number is B068-2864
Directory of c:\users\mwr\texmf\tex\latex\mmd
04/08/2012 08:22 AM .
04/08/2012 08:22 AM ..
04/08/2012 08:22 AM beamer
04/08/2012 08:22 AM letterhead
04/08/2012 08:19 AM 477 mmd-article-begin-doc.tex
04/08/2012 08:19 AM 134 mmd-article-header.tex
...
- Pull up a command prompt, and update the
ls-R file for your personal texmf tree:
C:\Users\mwr\texmf>mktexlsr .
mktexlsr: Updating ./ls-R...
mktexlsr: Updated ./ls-R.
mktexlsr: Done.
- Make a .MD file with a structure similar to this one based off the MMD User's Guide:
latex input: mmd-memoir-header
Title: peg-multimarkdown User's Guide
Author: Fletcher T. Penney
Base Header Level: 2
LaTeX Mode: memoir
latex input: mmd-memoir-begin-doc
latex footer: mmd-memoir-footer
# Introduction #
[Markdown] is a simple markup language used to convert plain text into HTML.
[MultiMarkdown] is a derivative of Markdown that adds new syntax features,
such as footnotes, tables, and metadata. Additionally, it offers mechanisms
to convert plain text into LaTeX in addition to HTML.
[peg-multimarkdown] is an implementation of MultiMarkdown derived from
John MacFarlane's [peg-markdown]. It makes use of a parsing expression
grammar (PEG), and is written in C. It should compile for most any (major)
operating system.
Thanks to work by Daniel Jalikut, MMD no longer requires GLib2 as a
dependency. This should make it easier to compile on various operating
systems.
[peg-markdown]: https://github.com/jgm/peg-markdown
[Markdown]: http://daringfireball.net/projects/markdown/
[MultiMarkdown]: http://fletcherpenney.net/multimarkdown/
[peg-multimarkdown]: https://github.com/fletcher/peg-multimarkdown
- Pull up a command prompt, and run mmd2tex with the .md file as an argument:
mmd2tex mmd-readme.md
Find the .tex file created (in this case, mmd-readme.tex), and pull it up in a TeX editor. It will look something like
\input{mmd-memoir-header}
\def\mytitle{peg-multimarkdown User's Guide}
\def\myauthor{Fletcher T. Penney}
\def\latexmode{memoir}
\input{mmd-memoir-begin-doc}
\chapter{Introduction}
\label{introduction}
\href{http://daringfireball.net/projects/markdown/}{Markdown}\footnote{\href{http://daringfireball.net/projects/markdown/}{http:/\slash daringfireball.net\slash projects\slash markdown\slash }} is a simple markup language used to convert plain text into HTML.
The code will look weird, but it's valid. Build it and check the PDF output.
That should basically take care of it. Edit the support files as necessary to fine-tune the \documentclass, preamble, and other bits.