v2.0.3

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: #tag and full-width #tag in any script become md-hashtag links when Init({ hashtagEndpoint }) contains {tag}, and stay plain text otherwise (@pardnchiu) [23c23b6, 379222a]
  • Add AST.json(), which returns a deep copy of the nodes as a plain BlockNode[] without the AST prototype (@pardnchiu) [23c23b6, 379222a]

翻譯
  • 新增 hashtag 連結:Init({ hashtagEndpoint }) 含 {tag} 時,各語系的 #tag 與全形 #tag 會輸出為 md-hashtag 連結,未設定則維持純文字
  • 新增 AST.json(),回傳節點的深拷貝,為不含 AST prototype 的一般 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 — UPDATE
  • README.md, doc/ — DOC
  • dist/ — CHORE
  • package.json — CHORE



Generated by SKILL