On 04/25/2013 07:14 PM, Elmar Hinz wrote:
Exporting the markup syntax is a different issue. I can think of a
couple ways to do it. The first, and most involved, would be to
write export routines, in the LyX source itself, similar to the
LyXHTML export routines. Another would be to write some kind of
simple converter that would convert some format LyX already
exports (perhaps the plaintext format?) to Markdown.
Hello Richard,
if I would like to transform LyXHTML to Markdown, I would need an XSL
library or at least an XML parser.
Is there already something like this contained in the sources? If not,
what is your suggestion to use?
The solution here is to rely upon an external parser, etc, being
available, much as LyX relies upon LaTeX to be available. This can be
checked for in the LyX (not autotools) configuration process.
The best thing would be if there is some python library that provides
what you need. LyX already uses python pretty extensively.
Richard