@oddmash/kowrap 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,26 @@
6
6
 
7
7
  [체험하기](https://oddmash.github.io/kowrap/#playground) | [문서](https://oddmash.github.io/kowrap/docs/) | [npm](https://www.npmjs.com/package/@oddmash/kowrap)
8
8
 
9
- [![kowrap 공개 사이트에서 CSS 기본 줄바꿈과 kowrap 적용 결과를 나란히 비교한 화면](docs/assets/kowrap-live.jpg)](https://oddmash.github.io/kowrap/#playground)
9
+ [![Kowrap 공개 랜딩에서 줄바꿈을 비교하고 문장을 편집하는 화면](docs/assets/kowrap-live.jpg)](https://oddmash.github.io/kowrap/#playground)
10
+
11
+ ## HTML에서 바로 실행하기
12
+
13
+ 아래 코드를 `index.html`로 저장하고 인터넷에 연결된 브라우저에서 열면 jsDelivr가 Kowrap `0.3.0`을 불러옵니다.
14
+
15
+ ```html
16
+ <!doctype html>
17
+ <html lang="ko">
18
+ <meta charset="utf-8">
19
+ <title>Kowrap 예제</title>
20
+ <p id="title" style="max-width: 220px; font-size: 24px">팀의 모든 문서를 한곳에서 관리하세요</p>
21
+ <script type="module">
22
+ import { mountKowrap } from 'https://cdn.jsdelivr.net/npm/@oddmash/kowrap@0.3.0/dist/dom/index.js/+esm';
23
+
24
+ const title = document.getElementById('title');
25
+ mountKowrap(title, { text: title.textContent });
26
+ </script>
27
+ </html>
28
+ ```
10
29
 
11
30
  ## 특징
12
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oddmash/kowrap",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Korean-aware text wrapping for JavaScript, HTML and frontend frameworks",
5
5
  "type": "module",
6
6
  "exports": {