From bd3b9c1e0a31ac815281b4550352432efc1caa17 Mon Sep 17 00:00:00 2001 From: Jim Vinson Date: Thu, 2 Jul 2026 15:49:00 -0700 Subject: [PATCH] docs(readme): convert em-dash bullet leads to bold-colon style Co-Authored-By: Claude Fable 5 --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f3a40b7..e9d4441 100644 --- a/README.md +++ b/README.md @@ -34,16 +34,16 @@ const { stripRtf } = require('rtf-to-text'); ## What it handles -- **Passthrough** — input that isn't RTF (doesn't start with `{\rtf`) is returned unchanged, so you can run it over a mixed pile of `.rtf` and `.txt` without sniffing each one first. -- **Control groups** — `fonttbl`, `colortbl`, `stylesheet`, `info`, `pict`, and friends are skipped wholesale, not leaked as noise — including any `\*`-marked ignorable destination (e.g. `\*\generator`, `\*\themedata`) that Word and friends sprinkle through real documents. -- **Unicode escapes** — `\uN?` decoded properly, including negative (16-bit-wrapped) values, and the trailing ANSI replacement char is consumed. -- **Structure** — `\par` / `\line` → newlines, `\tab` → tab; runs of blank lines are collapsed and the result is trimmed. -- **Escaped literals & punctuation** — `\{`, `\}`, `\\`, plus smart quotes, bullet, en/em dashes mapped to their real characters. -- **Formatting** — `\b`, `\i`, `\fs24`, and every other presentational control word is dropped silently. +- **Passthrough:** input that isn't RTF (doesn't start with `{\rtf`) is returned unchanged, so you can run it over a mixed pile of `.rtf` and `.txt` without sniffing each one first. +- **Control groups:** `fonttbl`, `colortbl`, `stylesheet`, `info`, `pict`, and friends are skipped wholesale, not leaked as noise, including any `\*`-marked ignorable destination (e.g. `\*\generator`, `\*\themedata`) that Word and friends sprinkle through real documents. +- **Unicode escapes:** `\uN?` decoded properly, including negative (16-bit-wrapped) values, and the trailing ANSI replacement char is consumed. +- **Structure:** `\par` / `\line` → newlines, `\tab` → tab; runs of blank lines are collapsed and the result is trimmed. +- **Escaped literals & punctuation:** `\{`, `\}`, `\\`, plus smart quotes, bullet, en/em dashes mapped to their real characters. +- **Formatting:** `\b`, `\i`, `\fs24`, and every other presentational control word is dropped silently. ## What it is not -A faithful RTF *parser* or a fonts-and-colors document model. It throws formatting away on purpose — the goal is the text a human would read, suitable for search indexing, analysis, ingestion pipelines, diffing, or just showing the user what they actually pasted. If you need to preserve styling, reach for a full document library instead. +A faithful RTF *parser* or a fonts-and-colors document model. It throws formatting away on purpose: the goal is the text a human would read, suitable for search indexing, analysis, ingestion pipelines, diffing, or just showing the user what they actually pasted. If you need to preserve styling, reach for a full document library instead. ## API