Markdown in AI Answers: What # and * Mean, and How to Get Plain Text

Blog / AI concepts

Markdown in AI Answers: What # and * Mean, and How to Get Plain Text

The hash signs, asterisks, and pipes in an AI answer are a formatting markup called Markdown. They are not garbled text, and the AI is not malfunctioning. Markdown uses plain characters to mark headings, bold text, lists, and tables, and the chat interface renders them into a clean layout. If you copy the content somewhere that does not understand Markdown, the symbols stay as they are. There are three ways to fix this: let the interface render the text before you copy it, use software that recognizes Markdown, or ask the AI to output plain text.

Where do the Markdown symbols in AI answers come from?

A large language model generates a stream of text. To give answers structure, models learn during training to use Markdown syntax for headings, lists, and emphasis. When a chat website or app receives that text, it converts the symbols into formatting: ## Heading becomes a line of large type, and **key point** becomes bold.

So what you see on the web page is the rendered result, and what you get when you copy it depends on the software. Some interfaces copy the rendered formatting, others copy the raw text with its symbols. The exact behavior depends on the product you use.

If you use a model through an API or a third-party client, some clients do not render Markdown at all, so the symbols always show. That is a difference in client features, not a problem with the model. For the basics of calling an API, see What is an AI API: a one-page explainer for beginners.

Common Markdown symbols at a glance

What you seeHow it rendersNotes
# Heading, ## SubheadingHeadings in different sizesMore hash signs means a lower level
**text**BoldWrapped in two asterisks
*text* or _text_ItalicOne asterisk or underscore
- item or * itemBulleted listSymbol at the start of the line, then a space
1. itemNumbered listNumber followed by a period
> textBlock quoteUsually shown as an indented block with a vertical bar
`code`Inline code in a monospaced fontWrapped in backticks
Multiple lines wrapped in three backticksCode blockOften has a "Copy" button
| col 1 | col 2 | plus a --- rowTablePipes separate columns
[text](URL)HyperlinkText in square brackets, address in parentheses
--- on its own lineHorizontal ruleThree hyphens

If you remember the first four rows, you can read the raw text of most AI answers.

What happens when you paste into Word, WeChat, or a notes app?

Different apps handle it differently. Here are the common cases; the exact behavior depends on the version of the software you use.

  • WeChat (China's dominant messaging app), SMS, and most chat input boxes: They do not recognize Markdown, so the symbols show up as typed. It is best to clean them up before sending.
  • Word: It does not automatically convert pasted Markdown symbols into formatting. If you copy directly from the rendered web interface, the formatting can sometimes survive; if you copy the raw text, the symbols come along.
  • Markdown editors such as Obsidian and Typora: They are built for this syntax, so pasting the raw text displays correctly.
  • Note-taking apps such as Notion: Some can convert pasted Markdown. Whether they do is something to confirm in the official documentation.

How do you turn an AI answer with symbols into a Word document?

If you want to turn a longer answer into a Word file, try these steps.

  1. Select the rendered content in the chat interface, copy it, and paste it directly into Word to see whether the formatting is preserved.
  2. If that does not work well, save the raw text as a text file ending in .md.
  3. Install the free tool Pandoc and run this in a terminal:
pandoc answer.md -o answer.docx
  1. Open answer.docx in Word, check the headings and tables, and adjust the fonts as needed.

This approach suits readers who are comfortable with a terminal. If you would rather not install anything, paste the raw text into a Markdown editor and choose Word or PDF when exporting; whether an export feature exists depends on the software.

How do you get the AI to output plain text?

The easiest way is to state the format you want in your prompt. You can copy this directly:

Please answer in plain text and do not use Markdown symbols.
Do not use #, *, -, |, or backticks.
For lists, use "First, second, third," and separate paragraphs with blank lines.

If you already have an answer full of symbols, add a follow-up: "Rewrite the above as plain text, remove all Markdown symbols, and do not change the content." It is a good idea to skim the result afterward to make sure nothing was dropped.

Conversely, if you need a fixed table or field layout, spelling out the requirements works better; see How to get AI to answer in a table or fixed format. If the answer itself is too vague, the cause is usually how the question was asked; see What to do when an AI answer is too vague or generic.

What else should you check if the symbols look wrong?

If you want to use AI in your own tools

Once you start using a client such as Cherry Studio, or connect a model inside a coding tool, the client is responsible for rendering Markdown, and formatting problems are more common than on the web.

AGI Plan is a commercial partner of cdnping. It is a multi-provider LLM aggregation gateway sold as a monthly subscription, paid in RMB (Chinese yuan) with no overseas credit card required. One subscription includes several capability groups, and tools such as Claude Code and Codex connect by changing a single endpoint URL; it is compatible with both the OpenAI and Anthropic API formats. Some models are marked as available outside China only; see the AGI Plan models page for specifics. It is not an officially authorized channel. Whether it suits you is your call, and it is worth reading the setup guide first.

What to do next

  1. Use the table above to try reading the raw text of your most recent AI answer.
  2. When you need to send an answer to someone, add the three-line "plain text" request to your prompt.
  3. When you need a document, export with Pandoc or a Markdown editor.
  4. To keep practicing how to ask, try What to ask AI the first time: 20 beginner exercises.

Related articles

Keep reading