Skip to content

Commit

Permalink
feat: Update disassemble API in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kangju2000 committed Aug 6, 2024
1 parent 658c52d commit 13003ee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/docs/api/disassemble.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ disassemble('ㄵ'); // 'ㄴㅈ'
<Sandpack>

```ts index.ts
import { disassembleHangul } from 'es-hangul';
import { disassemble } from 'es-hangul';

console.log(disassembleHangul(''));
console.log(disassemble(''));
```

</Sandpack>
16 changes: 16 additions & 0 deletions docs/src/pages/docs/api/disassemble.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: disassemble
---

import { Sandpack } from '@/components/Sandpack';

# disassemble

한글 문자열을 글자별로 초성/중성/종성 단위로 완전히 분리하여, 하나의 문자열로 만듭니다.
Expand All @@ -23,3 +25,17 @@ disassemble('값이 비싸다'); // 'ㄱㅏㅂㅅㅇㅣ ㅂㅣㅆㅏㄷㅏ'
disassemble(''); // 'ㅗㅏ'
disassemble(''); // 'ㄴㅈ'
```

## 사용해보기

<br />

<Sandpack>

```ts index.ts
import { disassemble } from 'es-hangul';

console.log(disassemble(''));
```

</Sandpack>

0 comments on commit 13003ee

Please sign in to comment.