v2.0.1

v2.0.1 Release Notes

Released


v2.0.0 -> v2.0.1

Summary


Hotfix for the v2 parser: table rows keep escaped pipes inside a single cell, and raw HTML images render at their natural width again. Pages that already inline the stylesheet can now stop the duplicate load, and the default content styles are refined for denser tables and code.
翻譯
v2 解析器的修正版:表格內跳脫的直線不再把同一格拆開,raw HTML 圖片恢復原始寬度。已內嵌樣式表的頁面可以避免重複載入,預設內容樣式也針對表格與程式碼調整得更緊湊。

Changes


FIX


  • Fix table rows splitting cells on escaped \|, including inside code spans and at the row end (@pardnchiu) [7edd63f, 1160d52]
  • Fix raw HTML images and videos being stretched to full width; they keep their natural size capped at the container width (@pardnchiu) [7edd63f, 1160d52]
  • Fix duplicate parser.css loading when the page already inlines it: the script tag accepts data-nanomd-css="off" to skip the automatic insert (@pardnchiu) [7edd63f, 1160d52]

翻譯
  • 修正表格遇到跳脫的 \| 時拆格的問題,含行內程式碼內與列尾
  • 修正 raw HTML 圖片與影片被撐滿寬度的問題,改為原始尺寸並以容器寬度為上限
  • 修正頁面已內嵌樣式時仍重複載入 parser.css:script 標籤加上 data-nanomd-css="off" 即跳過自動插入


UPDATE


  • Refine content styles: bottom border on h1 and h2, tables and code blocks one step smaller, a minimum table row height, and inline spacing around images (@pardnchiu) [7edd63f, 1160d52]

翻譯
  • 調整內容樣式:h1、h2 加底線,表格與程式碼區塊縮小一階,表格設最小列高,圖片左右留白


Scope


  • src/parser/ — FIX (tableBlock.ts, index.ts)
  • src/sass/parser.scss — FIX, UPDATE
  • dist/ — CHORE
  • package.json — CHORE



Generated by SKILL