# Opening Word documents

Mayhap opens Word documents (.docx) as new documents of its own, with their headings, lists, links and footnotes. The Word file itself is never changed: when you save, your work becomes a .mayhap file beside it.

## Opening a Word document

To open a Word document, press `Ctrl+O / ⌘O` and find it in the Open list, where it shows with its *.docx* extension. You may also choose *Browse…* at the end of the list and pick it in your system's file dialog. It opens as a new untitled document named after the file: *The Harbour Year.docx* opens as *The Harbour Year*.

Word documents aren't added to your recent files. Opened again later, a Word document is read afresh as another new document, so once you've saved your work, open the *.mayhap* file instead.

## Saving it as a Mayhap document

Mayhap never writes to a Word document. The first time you save, Mayhap asks where, suggesting the same name with *.mayhap*, in the Word document's folder. From then on it's an ordinary Mayhap document, and the Word file stays as it was.

If you would like to send your text back to Word, choose *Export › Word…* in the file menu. Mayhap writes a new *.docx* with Word's own headings, lists, quotes, links and footnotes.

## What comes across from Word

Mayhap reads Word's text along with the formatting Markdown has words for:

Headings
: *Title* and *Heading 1* become first-level headings, *Heading 2* second-level and *Heading 3* third-level ones. Deeper headings become third-level ones too.

Text
: Paragraphs, bold, italic, links and line breaks.

Lists
: Bulleted and numbered lists, nested as they were.

Quotes
: Paragraphs in Word's *Quote* and *Intense Quote* styles.

Code
: Paragraphs in a code style, and words set in a monospace font such as Courier. A document set entirely in such a font stays ordinary text.

Footnotes
: Footnotes and endnotes, numbered together, as Mayhap's own footnotes.

Tracked changes
: Read as accepted: the text shows as it would with every change accepted.

## What Mayhap leaves out

Page breaks and comments are dropped. Images, tables and text boxes are left out too, and when the document had any, the line after the document's name says *Images, tables and text boxes from Word were left out.* The Word file still holds them, since Mayhap never changes it.

If a Word document is damaged, its window says why, for example *This document is damaged and can't be opened: it is cut short.* Nothing is written to it.

## Keys

| Command | Linux, Windows | macOS |
| --- | --- | --- |
| Open… | Ctrl+O | ⌘O |
| Save | Ctrl+S | ⌘S |
