@jared-ye/markdown-tex 1.0.0 → 1.0.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 +10 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  > **Markdown ⇄ LaTeX** conversion library with a unified AST. Round-trip safe for headings, paragraphs, lists, code blocks, math, links, images, tables, blockquotes, and inline formatting.
12
12
 
13
- [![npm](https://img.shields.io/npm/v/markdown-tex)](https://www.npmjs.com/package/markdown-tex)
13
+ [![npm](https://img.shields.io/npm/v/@jared-ye/markdown-tex)](https://www.npmjs.com/package/@jared-ye/markdown-tex)
14
14
  [![GitHub](https://img.shields.io/badge/GitHub-JaredYe04%2Fmarkdown-tex-blue)](https://github.com/JaredYe04/markdown-tex)
15
15
 
16
16
  ---
@@ -18,7 +18,7 @@
18
18
  ## 🚀 Install
19
19
 
20
20
  ```bash
21
- npm install markdown-tex
21
+ npm install @jared-ye/markdown-tex
22
22
  ```
23
23
 
24
24
  ---
@@ -52,7 +52,7 @@ npm install markdown-tex
52
52
  ### Basic conversion
53
53
 
54
54
  ```ts
55
- import { markdownToLatex, latexToMarkdown } from 'markdown-tex'
55
+ import { markdownToLatex, latexToMarkdown } from '@jared-ye/markdown-tex'
56
56
 
57
57
  // Markdown → LaTeX body
58
58
  const latex = markdownToLatex('# Hello **world**\n\n- item one\n- item two')
@@ -81,7 +81,7 @@ const code = markdownToLatex('```js\nconst x = 1\n```')
81
81
  ### Escape for titlepage / headers
82
82
 
83
83
  ```ts
84
- import { escapeLatex } from 'markdown-tex'
84
+ import { escapeLatex } from '@jared-ye/markdown-tex'
85
85
 
86
86
  const title = escapeLatex('Price: 100% & "quoted"')
87
87
  // → Price: 100\% \& \"quoted\"
@@ -93,7 +93,7 @@ const title = escapeLatex('Price: 100% & "quoted"')
93
93
  ## 🔗 Links
94
94
 
95
95
  - **Repository:** [github.com/JaredYe04/markdown-tex](https://github.com/JaredYe04/markdown-tex)
96
- - **npm:** [markdown-tex](https://www.npmjs.com/package/markdown-tex)
96
+ - **npm:** [@jared-ye/markdown-tex](https://www.npmjs.com/package/@jared-ye/markdown-tex)
97
97
 
98
98
  </details>
99
99
 
@@ -104,7 +104,7 @@ const title = escapeLatex('Price: 100% & "quoted"')
104
104
 
105
105
  > 基于**统一 AST** 的 **Markdown ⇄ LaTeX** 转换库。支持标题、段落、列表、代码块、数学、链接、图片、表格、引用及行内格式的往返转换。
106
106
 
107
- [![npm](https://img.shields.io/npm/v/markdown-tex)](https://www.npmjs.com/package/markdown-tex)
107
+ [![npm](https://img.shields.io/npm/v/@jared-ye/markdown-tex)](https://www.npmjs.com/package/@jared-ye/markdown-tex)
108
108
  [![GitHub](https://img.shields.io/badge/GitHub-JaredYe04%2Fmarkdown-tex-blue)](https://github.com/JaredYe04/markdown-tex)
109
109
 
110
110
  ---
@@ -112,7 +112,7 @@ const title = escapeLatex('Price: 100% & "quoted"')
112
112
  ## 🚀 安装
113
113
 
114
114
  ```bash
115
- npm install markdown-tex
115
+ npm install @jared-ye/markdown-tex
116
116
  ```
117
117
 
118
118
  ---
@@ -146,7 +146,7 @@ npm install markdown-tex
146
146
  ### 基础转换
147
147
 
148
148
  ```ts
149
- import { markdownToLatex, latexToMarkdown } from 'markdown-tex'
149
+ import { markdownToLatex, latexToMarkdown } from '@jared-ye/markdown-tex'
150
150
 
151
151
  // Markdown → LaTeX 正文
152
152
  const latex = markdownToLatex('# 你好 **世界**\n\n- 第一项\n- 第二项')
@@ -175,7 +175,7 @@ const code = markdownToLatex('```js\nconst x = 1\n```')
175
175
  ### 标题页/页眉转义
176
176
 
177
177
  ```ts
178
- import { escapeLatex } from 'markdown-tex'
178
+ import { escapeLatex } from '@jared-ye/markdown-tex'
179
179
 
180
180
  const title = escapeLatex('价格:100% & “引号”')
181
181
  // → 价格:100\% \& \"引号\"
@@ -187,6 +187,6 @@ const title = escapeLatex('价格:100% & “引号”')
187
187
  ## 🔗 链接
188
188
 
189
189
  - **仓库:** [github.com/JaredYe04/markdown-tex](https://github.com/JaredYe04/markdown-tex)
190
- - **npm:** [markdown-tex](https://www.npmjs.com/package/markdown-tex)
190
+ - **npm:** [@jared-ye/markdown-tex](https://www.npmjs.com/package/@jared-ye/markdown-tex)
191
191
 
192
192
  </details>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jared-ye/markdown-tex",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Markdown ⇄ LaTeX conversion library with unified AST",
5
5
  "author": "JaredYe04",
6
6
  "repository": {