v2.0.2 Release Notes
Released
v2.0.1 -> v2.0.2
Summary
#tag in Markdown can now link to your own tag pages through the new hashtagEndpoint option, and AST.json() copies the parsed tree out as plain data for storage or other renderers. Tables size to their content and scroll inside their wrapper instead of squeezing into the page.翻譯
Markdown 裡的
#tag 可透過新的 hashtagEndpoint 選項連到自訂的標籤頁,AST.json() 則能把解析結果複製成純資料,方便儲存或交給其他渲染器。表格改為依內容寬度顯示,過寬時在外層內捲動,不再被壓進頁面寬度。Changes
FEAT
- Add hashtag links:
#tagand full-width#tagin any script becomemd-hashtaglinks whenInit({ hashtagEndpoint })contains{tag}, and stay plain text otherwise (@pardnchiu) [23c23b6, 379222a] - Add
AST.json(), which returns a deep copy of the nodes as a plainBlockNode[]without theASTprototype (@pardnchiu) [23c23b6, 379222a]
翻譯
- 新增 hashtag 連結:
Init({ hashtagEndpoint })含{tag}時,各語系的#tag與全形#tag會輸出為md-hashtag連結,未設定則維持純文字 - 新增
AST.json(),回傳節點的深拷貝,為不含ASTprototype 的一般BlockNode[]
UPDATE
- Size tables to their content without wrapping cells and scroll them horizontally inside
md-table-wrap. (@pardnchiu) [23c23b6, 379222a]
翻譯
- 表格改為依內容寬度顯示、儲存格不換行,過寬時在
md-table-wrap內水平捲動
Scope
src/parser/— FEAT (html.ts,index.ts,link.ts,regex.ts,types.ts)src/sass/parser.scss— UPDATEREADME.md,doc/— DOCdist/— CHOREpackage.json— CHORE
Generated by SKILL