Skip to content

Update MarkEdit Textpack Export to v0.2.0 - #50

Merged
cyanzhong merged 1 commit into
MarkEdit-app:mainfrom
haohailong:codex/markedit-textpack-v0.2.0
Oct 1, 2026
Merged

cyanzhong merged 1 commit into
MarkEdit-app:mainfrom
haohailong:codex/markedit-textpack-v0.2.0

Conversation

@haohailong

Copy link
Copy Markdown
Contributor

Summary

Updates the existing markedit-textpack registry entry to v0.2.0 while retaining v0.1.0. The new version points to the published GitHub Release and pins the verified release asset SHA-256 (72cde797c4ee71870569a143335dd57be7aa3c75800a67d68c8b9bf0460b8635). The minimum MarkEdit version remains 1.36.0.

This release addresses all three edge cases raised in the initial review:

  • Escape asset filenames safely when rewriting Markdown links and quoted HTML attributes, including parentheses and apostrophes.
  • Match actual HTML src / href attributes rather than data-src / data-href.
  • Preserve query strings and fragments such as guide.md#introduction on rewritten local links.

It also adds complete Traditional Chinese extension messages alongside English and Simplified Chinese, plus regression coverage for the built script.

Verification

  • Extension: npm test — 12/12 passed.
  • Manual MarkEdit exports in English and Traditional Chinese: both produced valid Textpack archives with the expected three bundled local assets, one unchanged unreadable link, and one unchanged external link. The bundled screenshot images matched the source bytes.
  • Registry: npm test — 14/14 passed; npm run build completed with full download and SHA-256 checks (31 extensions, 11 themes).
  • The published v0.2.0 JavaScript asset was downloaded and its SHA-256 matched the entry above.

Generated index.json and site files are intentionally excluded; this PR changes only extensions/markedit-textpack.json.

Thank you, @cyanzhong, for the careful review and specific suggestions that led to these fixes.

@cyanzhong

Copy link
Copy Markdown
Contributor

Thanks!

@cyanzhong
cyanzhong merged commit 8faad19 into MarkEdit-app:main Oct 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants