Ticket #48 (new enhancement)
Export to Latex
| Reported by: | andrea | Owned by: | deveiant |
|---|---|---|---|
| Priority: | normal | Milestone: | New Features Post Markdown 1.0.1 |
| Component: | API | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
It would be nice to export to latex.
This could have many uses. For example, to create high-quality PDF to use in "print this page" links.
Syntatically, the transformations would be as follows:
Heading
======= => \section{Heading}
Heading
------- => \subsection{Heading}
## Heading => \subsubsection{Heading}
*italic* => {\em italic}
**bold** => {\bf bold}
# links should be transformed to:
\href{url}{text}
# to have clickable links in the document
# ordered list
\begin{enumerate}
\item item1
...
\end{enumerate}
Moreover, one should wirte the equivalent of encode_html for latex.
I have tried to do these simple changes and it is trivial. However, mine is only a fast hack to see the feasibility.
In practice, there should be some sort of separation between parsing and rendering in Bluecloth, to make this task easy to do (and above all maintenable).
I attach to this ticket the original Markdown file and the PDF produced from it.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
