Skip to content
POST
/api/v1/transform/normalize-lists

Normalize list markers API

Rewrite `*` / `+` bullets to `-`.

POST /api/v1/transform/normalize-lists rewrites every `*` and `+` bullet to `-` outside fenced code blocks. Preserves indentation, nesting, and task-list checkboxes.

Overview

Rewrite every unordered list marker (`*`, `+`) to `-` outside fenced code blocks. Indentation, nesting, and task-list checkboxes are preserved.

Request

Authenticate with Authorization: Bearer YOUR_API_KEY and send a JSON body containing the parameters below. Pick your language:

curl -X POST 'https://trymarkdownviewer.com/api/v1/transform/normalize-lists' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"markdown":"* one\n* two"}'

Body parameters

FieldTypeRequiredDescription
markdownstring
required
Markdown source.

Response

Success responses are wrapped in a data field. Errors use { error: { code, message } } with an appropriate HTTP status — see the error reference.

{
  "data": {
    "markdown": "- one\n- two",
    "changed": true
  }
}

Try in browser

Free tools that run the same logic locally — no API key, no upload.

Try it

Send a real request against your account in the API playground. Errors there link straight back to the error reference.