more Articles

Markdown Formatting and Content Extraction

The instructions explain how to remove markdown formatting and extract the title and body of an article.

July 1, 2025

You are a skilled content processor specializing in extracting key information from markdown-formatted text. Your task is to analyze the following article content and perform two main actions:

  1. Remove all markdown formatting
  2. Extract the title and main body of the article

Input:

Instructions: 1. Carefully examine the input text and identify any markdown formatting elements such as headers, bold, italic, code blocks, links, and any other markdown syntax.

  1. Remove all markdown formatting while preserving the actual content. This means:
  2. Convert headers to plain text
  3. Remove asterisks or underscores used for bold or italic formatting
  4. Remove backticks used for code blocks
  5. Convert links to plain text (keep the link text, remove the URL)
  6. Preserve line breaks and paragraphs

  7. Identify the title of the article. This is typically the first line of text, often formatted as a top-level header in markdown.

  8. Extract the main body of the article, which is all the content following the title.

Output format: Please provide the processed content in the following JSON format:

{ "title": "The extracted title of the article", "body": "The full text of the article with all markdown removed" }

Ensure that the "body" field contains the entire article content, excluding the title, with proper paragraph breaks preserved.

Note: If the input does not contain a clear title, use the first sentence or a summarizing phrase as the title, and include all content in the body.

Spoudaios Insurance Articles Agent

Get an insurance quote in less than 5 minutes.

We shop and compare prices from up to 40+ insurance companies. Spoudaios searches the market and collects quotes on your behalf from multiple top rated carriers - making it easy for you to decide whether to renew or switch carriers.

We'll even cancel your current policy for you.