Neatbo.

TXT, Markdown, Word and EPUB: prepare text for publishing

Prepare encoding, blank lines, headings and lists in a chapter draft, then choose Markdown, Word or EPUB and check the result in its intended reader.

Example: turn troubleshooting notes into customer documents

A support team turns a long plain-text troubleshooting note into a customer document. The source contains wrapped paragraphs, numbered commands and an ordered recovery sequence. Removing every number or sorting all lines would destroy meaning even though the output looks cleaner. The first editorial task is deciding which structures are content and which are artifacts of the original export.

Identify paragraphs, lists and commands before cleanup

Keep the source untouched and work on a representative excerpt containing a heading, a list, a URL and a code sample. Confirm encoding before any cleanup. Join wrapped paragraphs only where a newline does not mark a separate record. Add prefixes or new numbering through the line-editing workspace, then compare the transformed excerpt with the source before applying the same settings to the full document.

Choose the output for the recipient’s task

Choose the publication format from the recipient’s next action. Markdown preserves an editable text source, Word helps with collaborative editing, PDF is useful for a fixed handoff, and EPUB needs chapters and navigation for continuous reading. Converting between them does not make those purposes identical. A complex table or embedded object should be tested separately instead of assuming that every exporter will preserve it.

A small, checkable example
Input: 001, 002, 001 as independent lines. Deduplication should keep the first 001 and 002; sorting is a separate decision.

Review in the intended editor or reader

Make the final check in the destination application. Follow links, inspect list nesting and verify that a copied command still matches the original. For an EPUB, traverse the table of contents; for a PDF, inspect page breaks; for Word, verify editable structures. Preserve the source and the processing decisions together so the next revision does not begin by reverse-engineering an exported file.

Common assumptions and better checks
Do not rely only onAlso check
Readable charactersCheck normalization preserves intended distinctions
Headings look rightCheck heading levels and navigation links
An EPUB opensCheck chapter boundaries, cover and reading order
  • Keep a copy in the original encoding and test special characters first.
  • Inspect the first and last chapters, lists and blank paragraphs.
  • Check the file in the reader used by the recipient.

References

Tools used in this article

Convert text encoding →Choose the right text encoding and save a readable TXT file.Merge text files →Put several text files together in the order you choose.Word counter →Words, characters, and paragraphs at a glance.Case converter →Change letter case to suit your text.Remove duplicate lines →Less repetition. Same order.Sort text lines →Sort your lines as text or numbers.Clean whitespace →Tidy extra spaces and empty lines without losing useful breaks.Find & replace →Find the text you need and replace it with care.Slug generator →Turn a title into a tidy URL slug.Split text file →Split a long text file by line count or size.Markdown to Word →Take your headings and tables into Word.Markdown to HTML →Turn Markdown into an HTML document you can open and share.Preview Markdown →Preview supported Markdown formatting from your text.HTML to Markdown →Paste HTML and turn its main structure into Markdown.Markdown to PDF →Preview your Markdown, then print or save it as PDF.Word to Markdown →Move Word text, links, and embedded images into Markdown.TXT to EPUB →Add a cover and chapters to your plain text.Read EPUB →Open a local EPUB and check its chapters in your browser.EPUB to TXT →Extract the text from an ebook in reading order.Edit EPUB metadata →Update an ebook’s title, author, or cover.Email extractor →Extract and deduplicate common email addresses from pasted text or a UTF-8 text file.URL extractor →Pull absolute HTTP and HTTPS links from text or a UTF-8 file into a list you can copy or save.Line editing workspace →Wrap text, number or strip lines, add affixes, create lists and extract ranges in one workspace.Word and character frequency →Rank words or Unicode code points and locate a chosen word or phrase in the source text.Compare two lists →Find shared entries, items only in A or B, and a combined list.Unicode text normalizer →Normalize Unicode text to NFC, NFD, NFKC or NFKD and optionally compare two texts after normalization.Clean selected hidden characters →Find zero-width spaces and other selected hidden code points, then remove or replace only the types you choose.Unicode inspector →Inspect each Unicode code point, its formal name or control alias, UTF-8 bytes, and source position.