<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Emily Jane</title>
    <description>The latest articles on DEV Community by Emily Jane (@emilyjane).</description>
    <link>https://dev.to/emilyjane</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4229021%2Ffbfac924-9eee-4bcd-a9dd-286b2696f83c.jpg</url>
      <title>DEV Community: Emily Jane</title>
      <link>https://dev.to/emilyjane</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/emilyjane"/>
    <language>en</language>
    <item>
      <title>Your Manuscript Looks Perfect in Word, So Why Does It Break When Converted to EPUB?</title>
      <dc:creator>Emily Jane</dc:creator>
      <pubDate>Fri, 13 Nov 2026 23:31:47 +0000</pubDate>
      <link>https://dev.to/emilyjane/your-manuscript-looks-perfect-in-word-so-why-does-it-break-when-converted-to-epub-m6m</link>
      <guid>https://dev.to/emilyjane/your-manuscript-looks-perfect-in-word-so-why-does-it-break-when-converted-to-epub-m6m</guid>
      <description>&lt;p&gt;You've spent hours formatting your manuscript in Microsoft Word. The headings are aligned, paragraphs look clean, images are positioned correctly, and every chapter starts exactly where it should.&lt;/p&gt;

&lt;p&gt;Then you convert the document into an EPUB file.&lt;/p&gt;

&lt;p&gt;Suddenly, headings appear incorrectly, paragraphs have unexpected spacing, images move out of position, and the overall reading experience looks nothing like your original Word document.&lt;/p&gt;

&lt;p&gt;What happened?&lt;/p&gt;

&lt;p&gt;The problem usually isn't &lt;a href="https://www.miamibookpublishers.com/" rel="noopener noreferrer"&gt;your manuscript itself&lt;/a&gt;. It's the difference between how Microsoft Word and EPUB handle document structure and formatting.&lt;/p&gt;

&lt;p&gt;Understanding this difference can save authors and publishers hours of unnecessary editing.&lt;/p&gt;

&lt;p&gt;In this guide, we'll look at why these formatting problems happen and how to prevent them during EPUB conversion.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Word and EPUB Don't Handle Layout the Same Way&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One of the biggest mistakes authors make is assuming that a Word document and an EPUB file follow the same formatting rules.&lt;/p&gt;

&lt;p&gt;They don't.&lt;/p&gt;

&lt;p&gt;Microsoft Word is primarily a word-processing application. It uses document formatting, page dimensions, margins, paragraph settings, and page breaks to control how content appears.&lt;/p&gt;

&lt;p&gt;EPUB, on the other hand, is a digital publication format built around web technologies such as XHTML and CSS.&lt;/p&gt;

&lt;p&gt;Most EPUB books use a reflowable layout. This means the content automatically adjusts to different screen sizes, font settings, and reading devices.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;A paragraph that occupies five lines in Word might occupy eight lines on an e-reader.&lt;/p&gt;

&lt;p&gt;A heading positioned at the bottom of a Word page might move to the next screen.&lt;/p&gt;

&lt;p&gt;An image that looks correctly positioned on a laptop might appear differently on a smaller device.&lt;/p&gt;

&lt;p&gt;The solution:&lt;/p&gt;

&lt;p&gt;Don't try to reproduce every Word page exactly in a reflowable EPUB.&lt;/p&gt;

&lt;p&gt;Instead, focus on preserving the document's structure, reading order, headings, images, and logical formatting.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Inconsistent Heading Styles Break Chapter Navigation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is one of the most common problems during manuscript conversion.&lt;/p&gt;

&lt;p&gt;Many authors format chapter titles manually by increasing the font size, applying bold formatting, and changing alignment.&lt;/p&gt;

&lt;p&gt;For example, one chapter title might be formatted as 18-point bold text, while another uses 20-point bold text.&lt;/p&gt;

&lt;p&gt;Although both look like headings, they may simply be ordinary paragraphs with visual formatting.&lt;/p&gt;

&lt;p&gt;EPUB conversion tools need meaningful document structure to identify chapters and generate navigation.&lt;/p&gt;

&lt;p&gt;How to fix it in Microsoft Word:&lt;/p&gt;

&lt;p&gt;Select your chapter title.&lt;/p&gt;

&lt;p&gt;Open the Styles section.&lt;/p&gt;

&lt;p&gt;Apply the built-in Heading 1 style.&lt;/p&gt;

&lt;p&gt;Use Heading 2 for section headings.&lt;/p&gt;

&lt;p&gt;Use Heading 3 for subsections.&lt;/p&gt;

&lt;p&gt;Apply the same structure throughout the manuscript.&lt;/p&gt;

&lt;p&gt;A typical heading structure looks like this:&lt;/p&gt;

&lt;p&gt;Heading 1: Chapter title&lt;/p&gt;

&lt;p&gt;Heading 2: Main section&lt;/p&gt;

&lt;p&gt;Heading 3: Subsection&lt;/p&gt;

&lt;p&gt;This creates a more organized document and makes it easier for conversion tools to identify the chapter hierarchy.&lt;/p&gt;

&lt;p&gt;Technical example:&lt;/p&gt;

&lt;p&gt;When represented in XHTML, a chapter heading should use a semantic heading element:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Chapter 1: Getting Started&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Understanding the Basics&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;This section introduces the main concepts...&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using actual heading elements is more meaningful than simply making text larger and bold.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Unexpected Paragraph Spacing and Line Breaks&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Another common issue occurs when authors use repeated spaces, empty paragraphs, or manual line breaks to control document appearance.&lt;/p&gt;

&lt;p&gt;For example, some manuscripts contain multiple empty paragraphs between sections:&lt;/p&gt;

&lt;p&gt;Chapter Introduction&lt;/p&gt;

&lt;p&gt;The first paragraph begins here.&lt;/p&gt;

&lt;p&gt;This might look acceptable in Word, but it can produce inconsistent spacing when converted into EPUB.&lt;/p&gt;

&lt;p&gt;The reason is simple: Word's paragraph layout and EPUB's CSS-based styling are different.&lt;/p&gt;

&lt;p&gt;How to fix it:&lt;/p&gt;

&lt;p&gt;Use paragraph formatting instead of repeated empty paragraphs.&lt;/p&gt;

&lt;p&gt;For example, an EPUB stylesheet can control paragraph spacing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;margin-top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;margin-bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1em&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;line-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also define consistent spacing for headings:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;margin-top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.5em&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;margin-bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.8em&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The advantage is that formatting becomes consistent across the publication rather than depending on manually inserted blank lines.&lt;/p&gt;

&lt;p&gt;Remember that reading applications may apply their own styles, so avoid relying on exact spacing values for essential layout.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Page Breaks Don't Always Work as Expected&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In a printed book, authors generally expect every chapter to begin on a new page.&lt;/p&gt;

&lt;p&gt;However, EPUB doesn't work with fixed physical pages in the same way as a print-ready PDF.&lt;/p&gt;

&lt;p&gt;A reading application creates pages dynamically depending on screen dimensions, font size, and user preferences.&lt;/p&gt;

&lt;p&gt;If your manuscript contains unnecessary manual page breaks, they may create unexpected blank spaces or awkward transitions.&lt;/p&gt;

&lt;p&gt;How to fix it:&lt;/p&gt;

&lt;p&gt;First, remove unnecessary manual page breaks.&lt;/p&gt;

&lt;p&gt;Then use a dedicated chapter structure and, where appropriate, a CSS page-break rule:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;
&lt;span class="nc"&gt;.chapter&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;break-before&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;page-break-before&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;always&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;For&lt;/span&gt; &lt;span class="nt"&gt;example&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;

&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;section&lt;/span&gt; &lt;span class="nt"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"chapter"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;Chapter&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;Building&lt;/span&gt; &lt;span class="nt"&gt;Better&lt;/span&gt; &lt;span class="nt"&gt;Habits&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;Every&lt;/span&gt; &lt;span class="nt"&gt;successful&lt;/span&gt; &lt;span class="nt"&gt;process&lt;/span&gt; &lt;span class="nt"&gt;starts&lt;/span&gt; &lt;span class="nt"&gt;with&lt;/span&gt;&lt;span class="o"&gt;...&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CSS rule provides a page-break preference, although support and rendering can vary between reading applications.&lt;/p&gt;

&lt;p&gt;Don't use page breaks to control every paragraph or section. Reserve them for meaningful structural transitions.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Images Move, Disappear, or Become Distorted&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Images are another major source of formatting problems.&lt;/p&gt;

&lt;p&gt;A manuscript might contain photographs, illustrations, diagrams, or book cover graphics.&lt;/p&gt;

&lt;p&gt;In Word, these images can be positioned relative to text, margins, or specific page locations.&lt;/p&gt;

&lt;p&gt;During EPUB conversion, those positioning rules might not transfer correctly.&lt;/p&gt;

&lt;p&gt;Common problems include:&lt;/p&gt;

&lt;p&gt;Images appearing outside their intended paragraphs.&lt;/p&gt;

&lt;p&gt;Images becoming stretched.&lt;/p&gt;

&lt;p&gt;Missing images because of broken file paths.&lt;/p&gt;

&lt;p&gt;Images exceeding the available screen width.&lt;/p&gt;

&lt;p&gt;Text wrapping incorrectly around images.&lt;/p&gt;

&lt;p&gt;How to fix it:&lt;/p&gt;

&lt;p&gt;Use properly embedded image files and simple responsive CSS.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;
&lt;span class="nt"&gt;img&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1em&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This helps prevent images from exceeding their content container while maintaining their aspect ratio.&lt;/p&gt;

&lt;p&gt;You should also check that:&lt;/p&gt;

&lt;p&gt;Image files are included in the EPUB package.&lt;/p&gt;

&lt;p&gt;File references use the correct paths.&lt;/p&gt;

&lt;p&gt;Image filenames match the actual files.&lt;/p&gt;

&lt;p&gt;Images have appropriate alternative text where needed.&lt;/p&gt;

&lt;p&gt;Image resolution is suitable for the intended reading experience.&lt;/p&gt;

&lt;p&gt;Avoid relying on complicated floating-image layouts unless you've tested them across your target reading applications.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fonts and Special Characters May Change&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Sometimes an EPUB looks different because the reading application doesn't support the fonts used in the original Word document.&lt;/p&gt;

&lt;p&gt;A custom font might be available on your computer but missing from the reader's device.&lt;/p&gt;

&lt;p&gt;Special characters can also cause problems if text encoding or font support is incorrect.&lt;/p&gt;

&lt;p&gt;How to fix it:&lt;/p&gt;

&lt;p&gt;Use standard Unicode text and avoid unnecessary font dependencies.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1em&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;line-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If custom fonts are necessary, embed them correctly and verify their licensing and reading-system compatibility.&lt;/p&gt;

&lt;p&gt;Also check:&lt;/p&gt;

&lt;p&gt;Curly quotation marks.&lt;/p&gt;

&lt;p&gt;Apostrophes.&lt;/p&gt;

&lt;p&gt;Em dashes.&lt;/p&gt;

&lt;p&gt;Accented characters.&lt;/p&gt;

&lt;p&gt;Non-English text.&lt;/p&gt;

&lt;p&gt;Special symbols.&lt;/p&gt;

&lt;p&gt;A simple text inspection after conversion can help identify characters that were replaced or incorrectly encoded.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How to Check Whether Your EPUB File Is Valid&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Even if an EPUB opens successfully, that doesn't necessarily mean it is technically correct.&lt;/p&gt;

&lt;p&gt;An EPUB publication contains multiple resources, including XHTML documents, CSS stylesheets, images, metadata, and navigation information.&lt;/p&gt;

&lt;p&gt;A missing resource or incorrect reference can cause problems.&lt;/p&gt;

&lt;p&gt;One useful tool for identifying these issues is EPUBCheck.&lt;/p&gt;

&lt;p&gt;EPUBCheck is an EPUB conformance checker used to identify structural and specification-related errors.&lt;/p&gt;

&lt;p&gt;You can find it here:&lt;/p&gt;

&lt;p&gt;A basic command-line validation looks like this:&lt;/p&gt;

&lt;p&gt;java -jar epubcheck.jar book.epub&lt;/p&gt;

&lt;p&gt;The tool checks the EPUB package and reports errors and warnings.&lt;/p&gt;

&lt;p&gt;Pay particular attention to:&lt;/p&gt;

&lt;p&gt;Missing files.&lt;/p&gt;

&lt;p&gt;Invalid XHTML.&lt;/p&gt;

&lt;p&gt;Incorrect resource references.&lt;/p&gt;

&lt;p&gt;Metadata problems.&lt;/p&gt;

&lt;p&gt;Navigation document errors.&lt;/p&gt;

&lt;p&gt;Unsupported or incorrectly declared resources.&lt;/p&gt;

&lt;p&gt;Fix critical errors first, then review warnings and test the resulting EPUB in actual reading applications.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Practical EPUB Conversion Workflow&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of formatting everything manually and hoping it survives conversion, follow a consistent workflow.&lt;/p&gt;

&lt;p&gt;Step 1: Clean the Word manuscript&lt;/p&gt;

&lt;p&gt;Remove unnecessary spaces, empty paragraphs, inconsistent formatting, and redundant page breaks.&lt;/p&gt;

&lt;p&gt;Step 2: Apply semantic styles&lt;/p&gt;

&lt;p&gt;Use Heading 1, Heading 2, and Heading 3 consistently.&lt;/p&gt;

&lt;p&gt;Step 3: Organize images&lt;/p&gt;

&lt;p&gt;Keep image files organized and ensure they are properly embedded or referenced during conversion.&lt;/p&gt;

&lt;p&gt;Step 4: Convert to EPUB&lt;/p&gt;

&lt;p&gt;Use a reputable EPUB conversion or publishing tool that supports structured documents.&lt;/p&gt;

&lt;p&gt;Step 5: Inspect the EPUB&lt;/p&gt;

&lt;p&gt;Check chapter order, paragraph spacing, headings, images, and navigation.&lt;/p&gt;

&lt;p&gt;Step 6: Validate the file&lt;/p&gt;

&lt;p&gt;Run EPUBCheck and resolve relevant errors.&lt;/p&gt;

&lt;p&gt;Step 7: Test on different screens&lt;/p&gt;

&lt;p&gt;Open the EPUB in multiple reading applications and test different screen sizes and font settings.&lt;/p&gt;

&lt;p&gt;This final step matters because an EPUB that looks good on one device may behave differently on another.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;A manuscript that looks perfect in Microsoft Word isn't automatically ready for digital publishing.&lt;/p&gt;

&lt;p&gt;The key is understanding that Word formatting is not the same as EPUB structure.&lt;/p&gt;

&lt;p&gt;Consistent heading styles, clean paragraph formatting, properly managed images, semantic XHTML, and responsive CSS can prevent many common conversion problems.&lt;/p&gt;

&lt;p&gt;Most importantly, don't judge an EPUB only by how it looks on your computer. Validate its structure and test it in actual reading environments.&lt;/p&gt;

&lt;p&gt;A well-prepared EPUB should provide a comfortable reading experience regardless of whether someone opens it on a smartphone, tablet, e-reader, or desktop.&lt;/p&gt;

&lt;p&gt;The goal isn't to make an EPUB look exactly like a Word document. It's to make the content work correctly as a digital book.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>From Markdown to Amazon KDP: A Pre-Publication Checklist for Developer-Authors</title>
      <dc:creator>Emily Jane</dc:creator>
      <pubDate>Wed, 11 Nov 2026 21:06:44 +0000</pubDate>
      <link>https://dev.to/emilyjane/from-markdown-to-amazon-kdp-a-pre-publication-checklist-for-developer-authors-1fpn</link>
      <guid>https://dev.to/emilyjane/from-markdown-to-amazon-kdp-a-pre-publication-checklist-for-developer-authors-1fpn</guid>
      <description>&lt;p&gt;In my previous post I covered how to write a book as plain Markdown, build it with Pandoc and check it in CI. That gets you a manuscript that builds on a clean machine. It does not get you a book that is ready to sell.&lt;/p&gt;

&lt;p&gt;This follow-up covers the gap: turning your Markdown build into files a retailer will accept, checking them properly, and deciding which jobs are worth handing to someone else. I use Amazon KDP as the example because it is where many &lt;a href="https://www.miamibookpublishers.com/" rel="noopener noreferrer"&gt;first-time authors&lt;/a&gt; start, but the same ideas apply to other stores. Always check each platform's current file rules, because they change.&lt;/p&gt;

&lt;p&gt;Two Products, Two Sets of Files&lt;/p&gt;

&lt;p&gt;An ebook and a paperback are different artifacts, even when they come from the same source.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Ebook   Paperback
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Format  EPUB (reflowable)   PDF (fixed layout)&lt;br&gt;
Layout  Reader controls font and size   You control trim size, margins, page numbers&lt;br&gt;
Cover   One image   Front, spine and back, sized to the page count&lt;br&gt;
Biggest risk    Structural errors, broken navigation    Margins, bleed, wrong page size&lt;/p&gt;

&lt;p&gt;Treat them as two build targets from one repository, the same way you would build a web app and a mobile app from one codebase.&lt;/p&gt;

&lt;p&gt;Add a Stylesheet to the EPUB&lt;/p&gt;

&lt;p&gt;Pandoc's default EPUB works, but a small stylesheet makes it look intentional. Create epub.css:&lt;/p&gt;

&lt;p&gt;css&lt;br&gt;
body {&lt;br&gt;
  line-height: 1.5;&lt;br&gt;
  margin: 0 5%;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;h1, h2, h3 {&lt;br&gt;
  page-break-after: avoid;&lt;br&gt;
  line-height: 1.2;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;pre, code {&lt;br&gt;
  font-family: monospace;&lt;br&gt;
  font-size: 0.85em;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;pre {&lt;br&gt;
  white-space: pre-wrap;   /* wrap long lines instead of overflowing */&lt;br&gt;
  padding: 0.6em;&lt;br&gt;
  background: #f4f4f4;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;img {&lt;br&gt;
  max-width: 100%;&lt;br&gt;
  height: auto;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Then build with it:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
pandoc metadata.yaml chapters/*.md -o book.epub \&lt;br&gt;
  --toc --toc-depth=2 \&lt;br&gt;
  --css=epub.css \&lt;br&gt;
  --epub-cover-image=cover.jpg&lt;/p&gt;

&lt;p&gt;The white-space: pre-wrap rule matters for technical books. Code that overflows the screen on an e-reader is one of the most common complaints about developer ebooks, so wrap it, and keep your listings short enough to read on a small screen.&lt;/p&gt;

&lt;p&gt;Build the Paperback PDF at the Right Size&lt;/p&gt;

&lt;p&gt;For print, set the page size and margins explicitly. This example uses a 6 × 9 inch trim size with a wider inner margin for the binding:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
pandoc metadata.yaml chapters/*.md -o book-print.pdf \&lt;br&gt;
  --pdf-engine=xelatex --toc \&lt;br&gt;
  -V documentclass=book \&lt;br&gt;
  -V classoption=twoside \&lt;br&gt;
  -V geometry:paperwidth=6in \&lt;br&gt;
  -V geometry:paperheight=9in \&lt;br&gt;
  -V geometry:inner=0.875in \&lt;br&gt;
  -V geometry:outer=0.625in \&lt;br&gt;
  -V geometry:top=0.75in \&lt;br&gt;
  -V geometry:bottom=0.75in&lt;/p&gt;

&lt;p&gt;Two warnings:&lt;/p&gt;

&lt;p&gt;Margins depend on page count. Print platforms set minimum inner margins that grow with the number of pages, so confirm the numbers against the current guidelines once your page count is known.&lt;br&gt;
Default Pandoc styling is functional, not designed. Headers, drop caps, running titles and proper front matter usually need a custom LaTeX template or a layout specialist.&lt;br&gt;
Use a Makefile So Builds Are One Command&lt;/p&gt;

&lt;p&gt;Typing long commands invites mistakes. A small Makefile keeps both targets reproducible:&lt;/p&gt;

&lt;p&gt;makefile&lt;br&gt;
CHAPTERS := $(sort $(wildcard chapters/*.md))&lt;/p&gt;

&lt;p&gt;.PHONY: all epub pdf check clean&lt;/p&gt;

&lt;p&gt;all: epub pdf&lt;/p&gt;

&lt;p&gt;epub: book.epub&lt;br&gt;
pdf: book-print.pdf&lt;/p&gt;

&lt;p&gt;book.epub: metadata.yaml epub.css cover.jpg $(CHAPTERS)&lt;br&gt;
    pandoc metadata.yaml $(CHAPTERS) -o $@ --toc --toc-depth=2 \&lt;br&gt;
      --css=epub.css --epub-cover-image=cover.jpg&lt;/p&gt;

&lt;p&gt;book-print.pdf: metadata.yaml $(CHAPTERS)&lt;br&gt;
    pandoc metadata.yaml $(CHAPTERS) -o $@ --pdf-engine=xelatex --toc \&lt;br&gt;
      -V documentclass=book -V classoption=twoside \&lt;br&gt;
      -V geometry:paperwidth=6in -V geometry:paperheight=9in \&lt;br&gt;
      -V geometry:inner=0.875in -V geometry:outer=0.625in \&lt;br&gt;
      -V geometry:top=0.75in -V geometry:bottom=0.75in&lt;/p&gt;

&lt;p&gt;check: book.epub&lt;br&gt;
    java -jar epubcheck.jar book.epub&lt;/p&gt;

&lt;p&gt;clean:&lt;br&gt;
    rm -f book.epub book-print.pdf&lt;/p&gt;

&lt;p&gt;Now make check builds the EPUB and validates it in one step, and your CI job can call the same target.&lt;/p&gt;

&lt;p&gt;Check the Things a Linter Cannot See&lt;/p&gt;

&lt;p&gt;Validation catches structure, but many problems only show up when you look at the output. Before you upload, do the following:&lt;/p&gt;

&lt;p&gt;Open the EPUB in at least two readers. A desktop reader and a phone app often render the same file differently.&lt;br&gt;
Click through the table of contents. Every entry should land on the right chapter.&lt;br&gt;
Search the output for leftovers. Look for TODO, FIXME, lorem, and placeholder names.&lt;br&gt;
Check every image at the smallest screen size. Screenshots that are readable in a PDF are often too small on a phone.&lt;br&gt;
Print a few pages. Even a home printer shows margin and font-size problems that a screen hides.&lt;br&gt;
Re-run every code sample on a clean machine, using the exact version of the language and libraries the book names.&lt;/p&gt;

&lt;p&gt;A short script can automate part of step 3, failing the build if draft markers are still in the manuscript:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
if grep -rnE "TODO|FIXME|lorem ipsum" chapters/; then&lt;br&gt;
  echo "Draft markers found. Fix them before publishing." &amp;gt;&amp;amp;2&lt;br&gt;
  exit 1&lt;br&gt;
fi&lt;br&gt;
Metadata Is Part of the Product&lt;/p&gt;

&lt;p&gt;Retail listings are searched. The title, subtitle, description, categories and keywords decide whether the right readers find your book. Keep this information in your repository too, for example in a listing.md file:&lt;/p&gt;

&lt;p&gt;markdown&lt;/p&gt;

&lt;h2&gt;
  
  
  Listing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Title:&lt;/li&gt;
&lt;li&gt;Subtitle:&lt;/li&gt;
&lt;li&gt;Short description (one sentence):&lt;/li&gt;
&lt;li&gt;Long description (150-250 words):&lt;/li&gt;
&lt;li&gt;Categories (check the store's current list):&lt;/li&gt;
&lt;li&gt;Keywords (7 phrases a reader might actually search):&lt;/li&gt;
&lt;li&gt;Series / edition:&lt;/li&gt;
&lt;li&gt;Price and territories:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Writing this down early, and committing it with your chapters, saves a scramble on launch day.&lt;/p&gt;

&lt;p&gt;Decide What to Outsource&lt;/p&gt;

&lt;p&gt;By now your pipeline handles drafting, building and validation. The jobs that remain are mostly human ones:&lt;/p&gt;

&lt;p&gt;Editing and proofreading. A person who did not write the book will find unclear explanations, inconsistent terms and gaps in the logic.&lt;br&gt;
Cover and interior design. A cover is judged in seconds, usually as a small thumbnail. Interior layout affects whether the book feels professional.&lt;br&gt;
Publishing setup and distribution. Accounts, tax information, categories and store rules take time to learn.&lt;br&gt;
Marketing. A book rarely finds readers by itself. Launch planning, reviewer outreach and an author website all take sustained effort.&lt;/p&gt;

&lt;p&gt;You can do these yourself, hire freelancers for individual pieces, or use a service that bundles them. Miami Book Publishers is one example of the bundled kind. According to its website, it offers editing and proofreading, formatting, cover design, Amazon KDP publishing and book marketing.&lt;/p&gt;

&lt;p&gt;Whichever route you choose, get these answers in writing before you pay anyone:&lt;/p&gt;

&lt;p&gt;What exactly is included, and what costs extra?&lt;br&gt;
Who owns the rights to the book, the cover and the interior files?&lt;br&gt;
Will you receive the final source files, not only the finished book?&lt;br&gt;
Who controls the retail accounts, and who receives the royalties?&lt;br&gt;
What are the revision limits, the timeline and the refund terms?&lt;br&gt;
Can you see samples or past work in your genre?&lt;/p&gt;

&lt;p&gt;The website's pages did not state pricing or contract terms when I checked, so ask for them directly and compare quotes from more than one provider.&lt;/p&gt;

&lt;p&gt;Keep the Repository as the Source of Truth&lt;/p&gt;

&lt;p&gt;One advantage of this workflow is that you are never locked in. If an editor or designer works from your exported files, bring their changes back into the Markdown source, then rebuild. Otherwise your repository and the published book will drift apart, and your next edition becomes painful.&lt;/p&gt;

&lt;p&gt;A simple rule helps: the Markdown in Git is the master copy, and every other file is generated from it.&lt;/p&gt;

&lt;p&gt;Final Pre-Publication Checklist&lt;br&gt;
make check passes and the EPUB validates with no errors.&lt;br&gt;
The paperback PDF uses the correct trim size and margins for your page count.&lt;br&gt;
No draft markers remain in the text.&lt;br&gt;
Code samples were run on a clean machine with the versions stated in the book.&lt;br&gt;
The cover meets the store's current size and format rules and still reads as a thumbnail.&lt;br&gt;
Title, subtitle, description, categories and keywords are written and reviewed.&lt;br&gt;
At least one person outside your team has read the whole draft.&lt;br&gt;
You know who owns the rights, files and accounts, and you have it in writing.&lt;br&gt;
A launch plan exists, even a small one: who you will tell and where.&lt;br&gt;
Wrapping Up&lt;/p&gt;

&lt;p&gt;Writing the book in Markdown solved the hardest engineering problem, which is keeping a long project maintainable. Publishing adds a different set of tasks, and most of them are easier if you treat them like releases: automate the checks, version the outputs and keep a clear record of every decision.&lt;/p&gt;

&lt;p&gt;If you have published a technical book, what surprised you most about the process? I would like to hear which steps you automated and which ones you were glad to hand over.&lt;/p&gt;

</description>
      <category>tools</category>
      <category>tutorial</category>
      <category>writing</category>
    </item>
    <item>
      <title>Writing a Technical Book with Markdown, Git and Pandoc: A Practical Workflow</title>
      <dc:creator>Emily Jane</dc:creator>
      <pubDate>Sat, 07 Nov 2026 17:51:37 +0000</pubDate>
      <link>https://dev.to/emilyjane/writing-a-technical-book-with-markdown-git-and-pandoc-a-practical-workflow-c02</link>
      <guid>https://dev.to/emilyjane/writing-a-technical-book-with-markdown-git-and-pandoc-a-practical-workflow-c02</guid>
      <description>&lt;p&gt;If you write code for a living, you already have most of the tools you need to write a book. Version control, plain text, linters and CI pipelines work just as well on a manuscript as they do on a codebase. Word processors, on the other hand, tend to fight you: binary files, painful diffs and formatting that changes when you open the file on another machine.&lt;br&gt;
This post walks through a simple, open workflow for writing a technical book (or a long guide) as plain Markdown, building ebook and PDF versions automatically, and catching problems before they reach your readers. It assumes basic comfort with Git and the command line.&lt;br&gt;
The Project Structure&lt;br&gt;
Keep the book in a Git repository, with one Markdown file per chapter. Numbered file names keep the order predictable:&lt;br&gt;
my-book/&lt;br&gt;
├── metadata.yaml&lt;br&gt;
├── cover.jpg&lt;br&gt;
├── chapters/&lt;br&gt;
│   ├── 01-introduction.md&lt;br&gt;
│   ├── 02-setup.md&lt;br&gt;
│   └── 03-first-project.md&lt;br&gt;
├── .vale.ini&lt;br&gt;
└── .github/&lt;br&gt;
    └── workflows/&lt;br&gt;
        └── build.yml&lt;/p&gt;

&lt;h2&gt;
  
  
  The metadata.yaml file holds the book's title, author, language and other details that Pandoc reads when it builds the output:
&lt;/h2&gt;

&lt;p&gt;title: "My Book Title"&lt;br&gt;
author: "Your Name"&lt;/p&gt;

&lt;h2&gt;
  
  
  lang: en-US
&lt;/h2&gt;

&lt;p&gt;Because everything is plain text, git diff shows exactly what changed in a chapter, branches let you try a different structure without risk, and your commit history becomes a free backup of every draft.&lt;br&gt;
Building Outputs with Pandoc&lt;br&gt;
Pandoc converts Markdown into almost any format. These commands build an EPUB, a PDF and a Word file from the same source:&lt;/p&gt;

&lt;h1&gt;
  
  
  EPUB for e-readers
&lt;/h1&gt;

&lt;p&gt;pandoc metadata.yaml chapters/*.md -o book.epub \&lt;br&gt;
  --toc --toc-depth=2 --epub-cover-image=cover.jpg&lt;/p&gt;

&lt;h1&gt;
  
  
  PDF (requires a LaTeX engine such as XeLaTeX)
&lt;/h1&gt;

&lt;p&gt;pandoc metadata.yaml chapters/*.md -o book.pdf \&lt;br&gt;
  --pdf-engine=xelatex --toc&lt;/p&gt;

&lt;h1&gt;
  
  
  DOCX, useful when an editor wants to comment in Word
&lt;/h1&gt;

&lt;p&gt;pandoc metadata.yaml chapters/&lt;em&gt;.md -o book.docx --toc&lt;br&gt;
The shell expands chapters/&lt;/em&gt;.md in alphabetical order, which is why the numbered file names matter. The DOCX export is worth keeping: many editors and reviewers prefer tracked changes in Word, and you can bring their edits back into Markdown by hand or with a diff.&lt;br&gt;
Linting Your Prose with Vale&lt;br&gt;
We lint code, so why not prose? Vale is a command-line linter that checks text against style rules. A minimal .vale.ini looks like this:&lt;br&gt;
StylesPath = styles&lt;br&gt;
MinAlertLevel = suggestion&lt;br&gt;
Packages = write-good&lt;/p&gt;

&lt;p&gt;[*.md]&lt;br&gt;
BasedOnStyles = Vale, write-good&lt;br&gt;
Run vale sync once to download the style package, then run vale chapters/ to get warnings about passive voice, weak words, repeated phrases and similar issues. Treat the output as suggestions, not commands. It will not judge your argument, but it is very good at catching the same habits you repeat in every chapter.&lt;br&gt;
For spelling and grammar, many authors pair Vale with a spell checker in their editor. Whatever you choose, run the checks before you ask anyone else to read the draft.&lt;br&gt;
Automating the Build with GitHub Actions&lt;br&gt;
A CI job guarantees that your book builds on a clean machine, and it gives you a fresh download after every push. Here is a minimal workflow:&lt;br&gt;
name: build-book&lt;br&gt;
on: [push]&lt;/p&gt;

&lt;p&gt;jobs:&lt;br&gt;
  build:&lt;br&gt;
    runs-on: ubuntu-latest&lt;br&gt;
    steps:&lt;br&gt;
      - uses: actions/checkout@v4&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  - name: Install Pandoc
    run: sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install -y pandoc

  - name: Build EPUB
    run: |
      pandoc metadata.yaml chapters/*.md -o book.epub --toc

  - name: Upload the build
    uses: actions/upload-artifact@v4
    with:
      name: book
      path: book.epub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;If a chapter contains broken Markdown or a missing image, the job fails and you find out immediately, not on the day you try to publish. You can extend the workflow later to run Vale and to build the PDF as well.&lt;br&gt;
Validating the EPUB&lt;br&gt;
Before you upload an ebook anywhere, validate it. EPUBCheck is the reference validator for the EPUB format:&lt;br&gt;
java -jar epubcheck.jar book.epub&lt;br&gt;
Retailers can reject files with structural errors, and a validator tells you what is wrong in plain language. Make it a habit to run it on every release candidate.&lt;br&gt;
Where Plain Text Stops Being Enough&lt;br&gt;
This workflow handles writing, version control and file generation very well. It does not do everything. A few jobs still benefit from specialists:&lt;br&gt;
• Developmental and copy editing. A fresh pair of eyes catches problems that no linter can, such as confusing explanations and gaps in the logic.&lt;br&gt;
• Cover and interior design. A readable layout and a strong cover affect how a book looks next to others. Pandoc's default PDF styling is functional, not designed.&lt;br&gt;
• ISBNs, metadata and distribution. Registering a book and getting it into stores involves paperwork and platform rules.&lt;br&gt;
Some authors cover these steps with freelancers, and others use a publishing service. Services such as &lt;a href="https://medium.com/@j20719711/10-powerful-tools-every-self-published-author-needs-in-2026-c75549d10973?postPublishedType=initial" rel="noopener noreferrer"&gt;Miami Book Publishers&lt;/a&gt; are one option for the production and distribution side, so compare what each one includes, who keeps the rights and how royalties work before you sign anything. Your Markdown source stays useful either way, because every editor and designer can work from the exported files.&lt;br&gt;
A Short Checklist&lt;br&gt;
Before you call a draft finished, run through this list:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Every chapter builds without errors in CI.&lt;/li&gt;
&lt;li&gt;Vale reports no warnings you haven't reviewed.&lt;/li&gt;
&lt;li&gt;The EPUB passes EPUBCheck.&lt;/li&gt;
&lt;li&gt;Code samples in the book have been run on a clean machine.&lt;/li&gt;
&lt;li&gt;At least one reader outside your team has gone through the draft.&lt;/li&gt;
&lt;li&gt;The cover, title and description match what the book actually covers.
Wrapping Up
Writing a book is a long project, and the same habits that keep a codebase healthy also help a manuscript: small commits, automated checks and regular builds. Start with one chapter, set up the pipeline once, and the rest becomes routine.
Have you written a book or a long guide this way? I'd like to hear which tools you used and what you would change.
Disclosure: I'm affiliated with Miami Book Publishers, which is mentioned above.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>discuss</category>
      <category>books</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
