Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@astrojs/mdx": "^8.0.2",
"@astrojs/react": "^7.0.0",
"@minjun0219/mdwire": "0.1.11",
"@minjun0219/mdwire": "0.1.12",
"astro": "^7.3.5",
"posthog-js": "^1.435.8",
"pretendard": "^1.3.9",
Expand Down
13 changes: 8 additions & 5 deletions site/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions site/src/pages/docs/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: ../../layouts/Doc.astro
title: CLI
description: The mdwire command — flags, output format, the repair report and batch mode.
---
import Next from "../../components/Next.astro";


# CLI — `mdwire`
Expand Down Expand Up @@ -59,7 +58,7 @@ One JSON line to stderr:
{"closedEmphasis":1,"closedFence":0,"revertedCodeSpan":0,"droppedMarker":0,"escapedChar":0,"tagEmphasis":0,"strippedHtml":0,"rewrittenBullet":0,"rewrittenTable":0,"convertedMarker":0}
```

The first four keys are repairs; the other six are channel rewrites. A fifth repair key, `guessedPair`, follows `droppedMarker` <Next />. What each counts:
The first four keys are repairs; the other six are channel rewrites. A fifth repair key, `guessedPair`, follows `droppedMarker`. What each counts:
[the repair report](/mdwire/docs/#the-repair-report).

## `--batch jsonl`
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ its own formatting:
| closed fence | A code fence still open at the end of the document, closed. |
| reverted code span | A backtick run with no partner, kept as text. |
| dropped marker | A stray `**` dropped (`tail**`, where text comes before it). |
| guessed pair | Emphasis paired by a guess rather than by the rules — an opener CommonMark would not open (`값**(합계)**를`) matched with a mirror-shaped closer on the same line. Math with ASCII on both ends (`x**(y)**z`) is left out. A non-zero count marks an answer worth a look. <Next /> |
| guessed pair | Emphasis paired by a guess rather than by the rules — an opener CommonMark would not open (`값**(합계)**를`) matched with a mirror-shaped closer on the same line. Math with ASCII on both ends (`x**(y)**z`) is left out. A non-zero count marks an answer worth a look. |

The other six are **channel rewrites** — what the channel needed changed before posting:

Expand Down
5 changes: 2 additions & 3 deletions site/src/pages/docs/npm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: ../../layouts/Doc.astro
title: npm (JS · React)
description: The @minjun0219/mdwire package — render, renderWithReport, Streamer, and the React and events entry points.
---
import Next from "../../components/Next.astro";
import Badges from "../../components/Badges.astro";


Expand Down Expand Up @@ -103,7 +102,7 @@ integer throws an `Error`.

| Field | |
|---|---|
| `closedEmphasis` · `closedFence` · `revertedCodeSpan` · `droppedMarker` · `guessedPair` <Next /> | Repairs |
| `closedEmphasis` · `closedFence` · `revertedCodeSpan` · `droppedMarker` · `guessedPair` | Repairs |
| `escapedChar` · `tagEmphasis` · `strippedHtml` · `rewrittenBullet` · `rewrittenTable` · `convertedMarker` | Channel rewrites |

What each counts: [Concepts](/mdwire/docs/#the-repair-report).
Expand Down Expand Up @@ -140,7 +139,7 @@ The same `html` output as a flat `open` / `text` / `close` / `void` list, for ot
Attributes carry only what the core emits: `href` on `a`, `class` (`language-…`) on `code`, `style`
(`text-align:…`) on `th` and `td`, `start` on `ol`, and `src` · `alt` on `img` when images load.

## lezer — `@minjun0219/mdwire/lezer` <Next />
## lezer — `@minjun0219/mdwire/lezer`

```ts
import { GFM, parser } from "@lezer/markdown";
Expand Down
3 changes: 1 addition & 2 deletions site/src/pages/ko/docs/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: ../../../layouts/Doc.astro
title: CLI
description: mdwire 명령의 플래그, 출력 형식, 정규화 보고, 배치 모드를 설명합니다.
---
import Next from "../../../components/Next.astro";


# CLI — `mdwire`
Expand Down Expand Up @@ -58,7 +57,7 @@ stderr 에 JSON 한 줄을 출력합니다.
{"closedEmphasis":1,"closedFence":0,"revertedCodeSpan":0,"droppedMarker":0,"escapedChar":0,"tagEmphasis":0,"strippedHtml":0,"rewrittenBullet":0,"rewrittenTable":0,"convertedMarker":0}
```

앞의 네 키는 고친 것이고, 뒤의 여섯 키는 채널에 맞춰 바꾼 것입니다. 고친 것에 다섯 번째 키 `guessedPair` 가 `droppedMarker` 뒤에 더해집니다 <Next />. 각 키가 세는 것은
앞의 네 키는 고친 것이고, 뒤의 여섯 키는 채널에 맞춰 바꾼 것입니다. 고친 것에 다섯 번째 키 `guessedPair` 가 `droppedMarker` 뒤에 더해집니다. 각 키가 세는 것은
[정규화 보고](/mdwire/ko/docs/#정규화-보고)에 있습니다.

## `--batch jsonl`
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/ko/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ mdwire 는 렌더링하면서 한 일도 셉니다. 앞의 다섯 가지는 **
| 닫아 준 펜스 | 문서 끝까지 닫히지 않아서 닫아 준 코드펜스를 셉니다. |
| 되돌린 코드 스팬 | 짝이 없어서 문자로 되돌린 연속된 백틱을 셉니다. |
| 버린 마커 | 짝이 없어서 버린 `**` 를 셉니다. `꼬리**` 처럼 앞에 글자가 붙은 마커가 해당합니다. |
| 추측으로 짝지은 강조 | 규칙이 아니라 추측으로 짝지은 강조를 셉니다. CommonMark 가 열지 않는 여는 마커(`값**(합계)**를`)를 같은 줄의 거울 모양 닫는 마커와 짝지은 횟수입니다. 양 끝이 ASCII 영숫자인 수식(`x**(y)**z`)은 세지 않습니다. 0 이 아니면 한 번 볼 만한 답변입니다. <Next /> |
| 추측으로 짝지은 강조 | 규칙이 아니라 추측으로 짝지은 강조를 셉니다. CommonMark 가 열지 않는 여는 마커(`값**(합계)**를`)를 같은 줄의 거울 모양 닫는 마커와 짝지은 횟수입니다. 양 끝이 ASCII 영숫자인 수식(`x**(y)**z`)은 세지 않습니다. 0 이 아니면 한 번 볼 만한 답변입니다. |

뒤의 여섯 가지는 **채널에 맞춰 바꾼 것**입니다. 원문에는 문제가 없어도 채널이 그대로 받지 못해서
보내기 전에 바꿔 쓴 것을 셉니다.

| 필드 | 세는 것 |
|---|---|
| 이스케이프한 글자 | 채널이 구문으로 읽을 수 있어서 이스케이프한 글자를 셉니다(GitHub 의 `\~` `\<` `\*`, 슬랙·노션의 `\*`). |
| 태그로 출력한 강조 | 채널이 마커로 읽지 못하는 자리라서 다르게 출력한 강조를 셉니다. GitHub 은 `<strong>` 으로 출력하고 슬랙은 마커 안쪽에 보이지 않는 U+2060 을 넣습니다 <Next />. |
| 태그로 출력한 강조 | 채널이 마커로 읽지 못하는 자리라서 다르게 출력한 강조를 셉니다. GitHub 은 `<strong>` 으로 출력하고 슬랙은 마커 안쪽에 보이지 않는 U+2060 을 넣습니다. |
| 제거한 HTML | 제거한 원문 HTML 을 셉니다. 채널이 렌더링하지 못하는 태그, 주석, 줄바꿈으로 바꾼 `<br>` 이 해당합니다. |
| 바꿔 쓴 불릿 | 채널 표기로 바꾼 목록 기호를 셉니다(`* ` `• ` → `- `, 텔레그램은 `- ` → `• `, `1)` → `1.`). |
| 다시 쓴 표 | 구분선과 칸 공백을 정리하거나 고정폭 블록으로 바꾼 표를 셉니다. |
Expand Down
5 changes: 2 additions & 3 deletions site/src/pages/ko/docs/npm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: ../../../layouts/Doc.astro
title: npm (JS · React)
description: "@minjun0219/mdwire 패키지의 render, renderWithReport, Streamer, 그리고 React · events 진입점을 설명합니다."
---
import Next from "../../../components/Next.astro";
import Badges from "../../../components/Badges.astro";


Expand Down Expand Up @@ -102,7 +101,7 @@ interface RenderOptions {

| 필드 | |
|---|---|
| `closedEmphasis` · `closedFence` · `revertedCodeSpan` · `droppedMarker` · `guessedPair` <Next /> | 고친 횟수입니다. |
| `closedEmphasis` · `closedFence` · `revertedCodeSpan` · `droppedMarker` · `guessedPair` | 고친 횟수입니다. |
| `escapedChar` · `tagEmphasis` · `strippedHtml` · `rewrittenBullet` · `rewrittenTable` · `convertedMarker` | 채널에 맞춰 바꾼 횟수입니다. |

각 필드가 세는 것은 [Concepts](/mdwire/ko/docs/#정규화-보고)에 있습니다.
Expand Down Expand Up @@ -140,7 +139,7 @@ toEvents(html); // [{ type: "open", tag: "p", attrs: {} }, { type: "text", text:
`class`(`language-…`), `th` · `td` 의 `style`(`text-align:…`), `ol` 의 `start`, 이미지를 불러올 때
`img` 의 `src` · `alt` 입니다.

## lezer — `@minjun0219/mdwire/lezer` <Next />
## lezer — `@minjun0219/mdwire/lezer`

```ts
import { GFM, parser } from "@lezer/markdown";
Expand Down
Loading