Skip to content
FeaturesPricingBlogDownload

← All posts

Writing with AI in a Markdown editor: draft, paste, revise, export

Writing with AI in a Markdown editor keeps the draft in one .md file you own. Ask the AI for one part at a time, paste it back, revise it yourself, then export.

Diagram card on a light background showing a draft and an AI answer becoming a revised Markdown file exported to Word and PDF

Writing with AI in a Markdown editor means the draft lives in one .md file that you own, and the AI works on parts of it: an outline, one section, a rewrite of a single paragraph. You paste each piece back into the file, revise it in your own words, and export the finished document at the end. The file holds the current version, not the chat, so nothing depends on scrolling back through a conversation to find the paragraph you liked.

This post covers the loop step by step, with the brief, the prompts and the habits that keep an AI-assisted draft readable and accurate.

Why draft in a Markdown file instead of in the chat?

A chat is a good place to ask for text and a poor place to keep it. After an hour of back and forth, the strongest version of the introduction is in one reply, the right outline in another, and your own edits are nowhere, because you made them in your head. A file gives the draft one home.

Markdown is the natural format for that file, for three practical reasons:

  • AI already writes it. Chat assistants format answers with # headings, - lists and pipe tables, so a pasted answer keeps its structure in a Markdown editor.
  • The file goes back in as context. When you ask for the next section, you paste or attach the draft so far, and the model reads it as clean text.
  • It converts to anything. The same file becomes a Word document, a PDF or a web page at the end, so you never commit to a format while you are still writing.

What does the loop look like?

Six steps, and the AI is optional in most of them.

Step You The AI What ends up in the file
1. Brief Write who it is for and what it must say Nothing yet A short brief at the top
2. Outline Pick and reorder Suggests two or three outlines Your ## headings
3. Draft Ask for one section at a time Writes that section A first pass under each heading
4. Revise Rewrite in your voice Points out problems on request Your text
5. Check Verify every fact, name and number Can list what needs checking Sources at the end
6. Export Convert and send Nothing A .docx, .pdf or .html

How do you start with a brief?

Put a brief at the top of the file before anything else. It is the part of every prompt you would otherwise retype, and it keeps the AI's sections pointing in one direction.

---
audience: operations managers at mid-size logistics companies
goal: explain why we are moving the warehouse scanners to a new vendor
length: about 900 words
must include: the March timeline, the training plan, who to ask
voice: plain, direct, no sales language
---

# Moving to the new scanner vendor

## Why we are changing

## What changes in March

## Training

## Who to ask

Delete the front matter before you export if the reader should not see it. The headings under it are your outline. If you asked the AI for outline options, this is where you write the one you chose, in your own order.

How do you ask for one section at a time?

Send the brief, the outline and the heading you want written, and ask for that section only. Smaller requests give you text you can actually judge, and they stop the model from writing a conclusion before you have decided what the piece says.

Below is the brief and outline for a document I am writing.
Write only the section "What changes in March".
Use Markdown. Start with the ## heading. Use ### for any sub-headings.
No introduction or summary outside the section. Do not invent dates or names;
write [CHECK] where a fact is needed.

<paste the brief and outline here>

The [CHECK] marker matters. A model asked for a date will supply one, and a plausible wrong date is harder to catch than an obvious gap. Searching the file for [CHECK] before you send it gives you a list of everything still missing.

How do you paste AI text without breaking the draft?

What lands on your clipboard depends on the app. Some chat apps copy raw Markdown, others copy formatted text, and the behavior has changed between versions of the same app. A Markdown editor that converts formatted text on paste handles both.

Paste each answer into an empty scratch note first, then move the parts you keep into the draft. This does three things: the paste converts cleanly, you see the answer on its own before it mixes with your text, and the scratch note stays as a record of what the AI wrote.

Before moving a section in, check its heading levels. A model told to start at ## sometimes starts at #, and one stray top-level heading breaks the outline and the table of contents of the exported document. For the other common faults (mixed bullets, tables without a separator row, unclosed code fences) see how to clean up AI Markdown.

How do you revise with AI without losing your voice?

Ask the AI for diagnosis more often than for replacement text. "List the three weakest sentences in this section and say why" gives you something to act on, and the fix stays yours. "Rewrite this section" gives you a new section in the model's voice, and after a few rounds the whole draft sounds like that.

Habits that help:

  • Ask for options, not one answer. Two alternative openings to choose from, rather than a single rewrite.
  • Keep cuts. A ## Cut heading at the bottom of the file, or a separate cuts.md, holds paragraphs you removed in case one comes back.
  • Mark text you have not rewritten yet. An HTML comment such as <!-- AI draft --> above a section is invisible in most rendered output and easy to search for.
  • Compare versions. If the folder is a Git repository, git diff --word-diff shows exactly which words changed between two drafts; Git for notes has the commands.

Read the final version aloud. Sentences that only the model would write tend to show up there.

How do you check the facts in an AI-assisted draft?

Treat every specific in the draft as unverified until you have checked it against a source: names, dates, figures, quotes, product details and links. Language models produce fluent text whether or not the facts in it are right, and fluent text is easy to wave through.

Keep the sources in the file, under a heading at the end, with what each one supports:

## Sources

- Vendor contract, section 4: go-live date 16 March
- Training plan from HR (shared drive, 2026-11-20): two sessions per site

Delete the section before you export if the reader does not need it.

How do you export the finished document?

Convert the Markdown instead of copying the rendered text into a word processor. Pandoc does it from the command line, guessing the output format from the file extension:

pandoc moving-to-new-scanners.md -o moving-to-new-scanners.docx

PDF output from Pandoc needs a PDF engine; by default that is LaTeX, which you install separately. Many Markdown editors export Word and PDF directly. Turning AI answers into Word and PDF covers what survives the conversion.

Writing with AI in Noteline

Noteline, which we make, has no AI built in, so you use whichever assistant you already have and bring the text into a plain .md file. Paste an answer into an empty note and Noteline converts it to Markdown, shifting headings so the first level is # and renumbering numbered lists; the same tidy-up runs on Markdown copied from a chat. Keep the draft in one tab and scratch notes in others (Cmd+T on a Mac, Ctrl+T on Windows and Linux opens a new tab), open the table of contents with Cmd+Shift+O or Ctrl+Shift+O, and use Find in Folder (Cmd+Shift+F or Ctrl+Shift+F) to search for every [CHECK] left in your notes. The desktop app exports Word and PDF offline with File > Export as Word… and File > Export as PDF…. The iPhone, iPad and Android apps are free and keep the same Markdown, but Word and PDF export is desktop only.

Give your next idea a Markdown file.

Write a note, copy it into your prompt, and keep the original as a plain .md file.

Try desktop free for 14 days ↓Free on iPhone, iPad and Android →

Desktop: 14-day trial, then $9.99 once. Mobile apps: free. No account.

Keep reading

  • Paste as Markdown
  • Markdown for writers
  • How to keep AI meeting notes as Markdown files you own
  • AI memory files: what your assistant should remember, kept in Markdown
  • An AI research workflow in Markdown: sources, summaries and claims

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io