Quote:
Originally Posted by ctop
This is an excellent idea. How would I go about that?
|
Copy txtmlizer.py and name it something like markdownmlizer.py. Then make the changes to markdownmlizer.py like you were doing previously to have it write markdown formatting in the appropriate places.
Supporting the MarkdownMLizer would be the easiest part. In the txt output.py file all you would need to do is add an option (--markdown-output for example) and in the convert function assign the writer variable to the MarkdownMLizer object. For example:
Code:
def convert(self, oeb_book, output_path, input_plugin, opts, log):
if opts.markdown-output:
writer = MarkdownMLizer(log)
else:
writer = TXTMLizer(log)
txt = writer.extract_content(oeb_book, opts)
Quote:
Originally Posted by ctop
Could this be a bug?
|
Most likely yes. Open a
ticket so it can be looked into.