Re: How can I convert ebooks to markdown format properly?
Posted by
mojavelinux on
Nov 01, 2018; 7:25pm
URL: https://discuss.asciidoctor.org/How-can-I-convert-ebooks-to-asciidoc-format-properly-tp6577p6578.html
If I am reading your message correctly, you're having difficulty when converting HTML to AsciiDoc using pandoc. Since that relates to pandoc and not Asciidoctor, I suggest opening the issue here:
Cheers,
-Dan
On Thu, Nov 1, 2018 at 1:22 PM documentationchronicles [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hi there. I am trying to convert programming ebooks to asciidoc format for adding this books to my asciidoc notes and making changes(adding extra notes and adding my own codes) on it. My problem is conversion tools cannot convert code blocks properly.I know that a lot of techniques exist pdf, epub to asciidoc so I want to discuss which technique is better for converting cs books to asciidoc format.
EPUB->HTML->ASCIIDOC
My technique is the following:
I use epub ebooks rather than pdf ebooks. Because epub format has a better structure for HTML, I have a lot of data loss when I tried to convert PDF to HTML because PDF format is a presenttation tool, not a structure tool.
I use calibre to convert EPUB to HTML because it is awesome for structure detection.
I use pandoc to convert html to asciidoc.My results are pretty good except for code blocks.Code blocks rendered as HTML paragraphs instead of asciidoc code blocks.
Any advice for converting programming ebooks to asciidoc format appreciated.
--