Package Exports
- @gracefullight/markdown
Readme
@gracefullight/markdown
Markdown preprocessing utilities for Korean (CJK) text rendering.
Fixes common issues where react-markdown (or similar parsers) fails to parse bold syntax when followed immediately by Korean characters.
Install
npm install @gracefullight/markdown
# or
yarn add @gracefullight/markdown
# or
bun add @gracefullight/markdownUsage
import { preprocessMarkdown } from "@gracefullight/markdown";
const raw = "**[설정]**에서 변경할 수 있습니다.";
const fixed = preprocessMarkdown(raw);
// => "**[설정]** 에서 변경할 수 있습니다."What it fixes
| Before | After |
|---|---|
**'text'** |
'**text**' |
**"text"** |
"**text**" |
**text**에서 |
**text** 에서 |
~text~ |
\~text\~ |
License
MIT