The last ebook I published was six years ago and a lot about the way I think I would do it has changed. Primarily I think I would change from writing it in word to writing it in Markdown and then converting it to other formats as needed.
Why Write Ebook In Markdown
Well there are several reasons why I like the idea of it better.
- Plain text editor means write anywhere and still be able to format.
- Plain text editor means no dependance on propritary software.
- Plain text means easy for using git for version tracking. Big deal here.
- Markdown means splitting into multiple files easily – for example by chapter.
- Markdown means one master format that can be converted to all the others as needed.
Converting my Original Word Doc to Markdown
The original of my book was in doc (written in Microsoft Word). But I was able to convert it seemlessly to markdown with just the following three steps:
- $ sudo apt-get install pandoc
- If it was actually doc, then open the file in word or open office and “save as” docx.
- copy the docx file to whatever directory you want your book files to be located
- $ pandoc –extract-media . originalfile.docx -o output.md
- NOTE: The “.” after –extract-media and before originalfile is the basepath you want the media extracted to.A “media” folder is automatically created at that location and the files are extracted into that media folder.
Some sources that seem useful. I will probably convert this to a references section as a fill the body of this article out over time, but for now you’ll have to get there yourself to get the info!
- https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet (Markdown cheetsheat)
- https://pandoc.org/ (software from converting from Markedown to other formats)