Skip to content

Releases: AI-Scarlett/obsidian-content-studio

Mogao Content Studio 0.1.19

Choose a tag to compare

@github-actions github-actions released this 24 Sep 07:01

Mogao Content Studio 0.1.19

  • 在 Obsidian 的插件设置页新增「支持开发 → 查看打赏二维码」,打开即可使用微信扫码。
  • 二维码内置于 main.js,离线可看;仍只需安装 main.js、manifest.json、styles.css 三个文件。
  • 兼容 Obsidian 1.13 的可搜索设置页和旧版设置页。打赏完全自愿。
  • 中英文 README 顶部保留直达打赏区域的链接,并补充插件内入口说明。

更新时替换三个插件文件并重新加载插件,保留 data.json,原设置和自定义模板不变。配套浏览器助手仍为 0.3.8,无需更新。

验证:Obsidian lint、CSS lint、类型检查和 122 项插件测试通过;已在本机 Obsidian 1.13.7 加载 0.1.19,点击设置页入口并确认二维码完整显示。安装只替换三个插件文件,核对 data.json 未被改写。

本版只增加自愿支持入口,平台同步的验证范围沿用 0.1.18 说明。

Mogao Content Studio 0.1.18

Choose a tag to compare

@github-actions github-actions released this 09 Sep 11:15

Mogao Content Studio 0.1.18

修复通用模板采样和正文排版。六套内置模板现在分别定义字号、行距、段距、字距和缩进;预览、复制和浏览器投递共用完整的行内文字样式。

参考 GitHub 上的 obsidian-wechat-converter、doocs/md 和 wechat-style-extractor,接入 Juice CSS 内联引擎,支持 CSS 变量、结构选择器及字体简写。可识别的嵌套标题保留外框、内层色块和连续编号;避免将较小的图片说明当作主标题。参考文章图片继续跳过,保存的模板不包含原文或图片。

已有模板不会被自动覆盖。请重新采样来源链接并另存,以获得新的标题结构。需要验证的微信页面仍必须先由用户完成验证,图片内的标题装饰和复杂整篇布局不能保证还原。实现依据和验收边界见 模板引擎研究。

本版仅更新 Obsidian 插件,配套浏览器助手仍为 0.3.8。本次没有修改平台上传逻辑,也未执行最终发表。

验证:Obsidian lint、CSS lint、类型检查、122 项插件测试及 79 项浏览器助手测试通过。已在本机 Obsidian 1.13.7 加载 0.1.18,检查内置模板的实际正文排版,并通过采样弹窗验证 CSS 变量、嵌套色块和编号。更新前备份当前排版稿,更新后恢复原笔记及原模板选择;保存的模板未变。当前参考链接返回微信验证页,该链接本身的复刻效果仍未验收。

Mogao Content Studio 0.1.17

Choose a tag to compare

@github-actions github-actions released this 09 Sep 10:12

Mogao Content Studio 0.1.17 / browser assistant 0.3.8

修复知乎上传多图时的一处中断原因:编辑器重建已有图片节点后,旧版无法识别第二张新增图片,最终超时。现在按原生图片块与实体记录逐张核对,兼容重复图片和平台图片地址变化;放回原位置前确认图片属于本次上传,继续保留标题、正文和图片顺序检查。

更新已安装的浏览器助手文件后,在 Chrome 扩展管理页点击墨稿的“重新加载”,确认显示 0.3.8。仅更新 Obsidian 或刷新平台页面不会更新正在运行的助手。配套 Obsidian 插件为 0.1.17;协议升级为 10,旧助手不能领取新任务。完整安装说明见仓库 README 和 browser-extension/README.md。

本版保留 0.1.16 对“链接学模板”采样工具的通用修复;已有模板不会自动重写,重新采样后另存即可。参考文章的大图继续跳过,预览使用占位符。

Validation: two previously failing remount scenarios now preserve all three image positions, including duplicate image URLs and insertion beside a marker. Additional regressions cover CDN URL replacement, untrusted previews and stale upload bindings. These run against a real Draft.js model with a simulated uploader. The logged-in Zhihu page's file inputs were inspected, but the automated file chooser did not open; live upload and saved-draft reopening remain unverified. No final publication was performed.

Mogao Content Studio 0.1.16

Choose a tag to compare

@github-actions github-actions released this 09 Sep 09:48

Mogao Content Studio 0.1.16

修复“能提取,但不像原文”的一组原因:正文采样从段落标签深入实际文字节点,避免把附注小字当成正文;保留字间距、首行缩进、空行间距、标题外层底色/边框和主容器样式。标题前景与背景从同一组观测样式选取,避免拼出白底白字。相对字号、行高与 CSS important 优先级参与采样;不混合未激活的条件样式。

学习模板使用简洁基础样式,不再混入“墨白”的边线、绿色引用框等装饰。修复渲染时边框简写覆盖引用左边线的问题。增加“样式示例 / 当前稿件”切换,展示标题、正文、强调、引用与图片占位;不再以提取属性数量暗示视觉还原程度。

请重新提取链接后保存,新算法不会自动重写已有模板。参考文章图片仍跳过,不改变笔记中的原图或发布流程。浏览器助手仍为 0.3.7,无需重新加载。

Validation: nested WeChat-shaped fixtures cover typography, containers, heading contrast, relative units, spacer paragraphs, preservation of source prose, neutral fallbacks and sanitization. A local browser comparison with identical synthetic text showed matching body size/color/line height/letter spacing, blue heading background, white heading text, article frame and quotation border. The previously downloaded reference exposed the old 14px body selection versus the actual nested 17px text; the updated sampler selects 17px.

The latest reported WeChat URL could not be opened by browser automation because of site-safety policy. It has not been visually verified against the new template. The local comparison is regression evidence, not a claim of pixel-identical reconstruction of that article. Image-based ornaments, responsive/conditional designs and complex layouts remain outside the static template model.

Mogao Content Studio 0.1.15

Choose a tag to compare

@github-actions github-actions released this 09 Sep 08:19

Mogao Content Studio 0.1.15

修复“链接学模板”对大网页误报“内容过大”的问题。读取过程中跳过脚本、内嵌图片和媒体,仅保留样式提取所需的文档结构、文字与样式。参考文章图片不下载,模板预览中的图片使用占位符;原笔记和发布图片不变。

URL 与粘贴 HTML 使用同一精简流程。原始页面仍受 20 MB 上限约束,精简后的正文与样式受 3 MB 上限约束;保留超时、压缩、重定向和公网地址检查。重新提取成功时会清除上一次错误显示。

The reported WeChat page was 3,420,713 bytes, with 3,277,070 bytes of scripts and about 105 KB of article markup. The updated downloader reduced it to 120,128 bytes and extracted 21 style features; all three selected stylesheets were read successfully and no reference image request was made. Regression tests cover large scripts and embedded images, chunk boundaries, input/output limits, style preservation and placeholder image positions.

Verified in native Obsidian 1.13.7 with plugin 0.1.15 reloaded: the same link returned 21 style features, both preview images became placeholders, and saving the template was available. The existing draft and its two ordinary note images were preserved. All 107 plugin tests and 75 browser companion tests pass, with source/CSS lint, type checks and production builds.

Browser assistant 0.3.7 remains compatible and needs no reload for this Obsidian-only change. Existing platform upload validation boundaries remain unchanged; see 0.1.14.

Mogao Content Studio 0.1.14

Choose a tag to compare

@github-actions github-actions released this 09 Sep 06:13

Mogao Content Studio 0.1.14 / browser assistant 0.3.7 preview

X and Xiaohongshu now have two direct publishing actions: 发布长文 and 发布图文. The mode dropdown is removed. Each button sends its own explicit mode; switching back to articles after a photo post cannot accidentally send another photo post. Topics remain editable above the actions.

X text is sent intact without a local 280-character gate. The extension also stops treating a disabled native Post button as a failed transfer. X handles account-specific length and publishing eligibility. Existing image constraints remain; no truncation, splitting or final publication is added.

Xiaohongshu photo-post upload completion no longer depends on the Vue devtools DOM property __vueParentComponent.props.img.fileId. That property is not a supported production interface and its absence made the old code time out after receiving the first image, before it ever wrote the title/body. The adapter now checks the native upload/error/processing masks, decoded previews and the native Edit control, then uses preview URLs to verify image order. These signals show native UI readiness, not proof of a server-saved draft.

The first photo reveals the form. The title and body are written immediately once both fields appear, before waiting for the photo completion check; native topic selection follows after all photos are received. Existing draft text or user edits still stop synchronization and remain untouched.

Protocol 9 and MAIN runtime V9 require browser assistant 0.3.7. Updating files alone does not reload an unpacked extension. Permissions are unchanged.

Validation boundaries

Local plugin lint, CSS lint, TypeScript, 100 plugin tests, 75 companion tests, both builds and packaging passed.

Regression coverage uses the production-shaped Xiaohongshu DOM without Vue devtools properties, confirms title/body after the first image including a pending upload, checks subsequent user edits, and preserves incomplete/failed-image detection. X coverage sends long captions with a disabled native Post button and verifies the full caption and photos remain present. Studio coverage exercises both buttons alternately and confirms long X text reaches the bridge intact.

Live read-only inspection on 2026-09-09 found the user's image present in the Xiaohongshu form, with empty native title/body fields. The DOM includes .hover-mask .edit-btn after upload, matching the platform's public SingleImg component. No existing draft was overwritten or published. Complete real-account acceptance of this revision remains pending because the automation's file-upload access is blocked.

Mogao Content Studio 0.1.4

Choose a tag to compare

@github-actions github-actions released this 08 Sep 08:59

Mogao Content Studio 0.1.4 fixes image copying in Xiaohongshu mode and adds actual image clipboard actions.

  • 复制图文正文 now keeps rich text and embedded images for Xiaohongshu long-form drafts. Title copying remains separate.
  • Add 复制这张图 beside each image and an image picker under 复制图片. These actions write PNG image bytes, including conversion from JPEG/WebP/AVIF/GIF (GIF is static).
  • Add 复制卡片 N below each card, copying text and illustrations together as a 1080 × 1440 PNG.
  • Use rich Clipboard API copying with a native-selection compatibility fallback. Sanitize copied content, wait for images, preserve cursor/selection and report failures.
  • Preserve the larger editor, source notes, templates, DOCX/image exports and network protections. No platform upload or automatic publication is added.

Validation: official Obsidian ESLint and CSS checks pass with zero warnings, TypeScript passes, and 80 offline tests pass. Local browser clipboard/paste checks received two embedded images in rich text and real PNG file payloads for individual images/cards. Actual platform acceptance remains unverified; some editors filter embedded image data. Save temporary workbench edits before reloading the plugin.

Mogao Content Studio 0.1.3

Choose a tag to compare

@github-actions github-actions released this 08 Sep 08:05

Mogao Content Studio 0.1.3 provides a larger writing workspace and explicit image delivery workflows.

  • Write in a full-size editor, switch to preview, or compare side by side in a wide pane. Templates and style controls open in a drawer.
  • Export WeChat DOCX with real embedded media in the original paragraph order. Use the platform's document importer and fill the title separately. Basic formatting is retained; template decorations and destination rendering can differ.
  • Export Xiaohongshu cards or numbered original images for bulk upload, with separate title/body text and a folder shortcut. Cards preserve the arrangement of text and images as pixels.
  • Correct image-copy messaging, relative font sizes in Word, and image decoding before card pagination.
  • Keep source notes, custom templates, network protections and write-only clipboard behavior. No platform upload or automatic publishing is added.

Validation: official Obsidian ESLint and CSS checks with zero warnings, type checking, 74 tests and build/package checks. Browser validation covered 380/600/1100 px panes, a five-card PNG export, and a 15-page long-paragraph preview. A native DOCX containing PNG and WebP source media was exported through the UI, unpacked and rendered for visual review.

Platform acceptance and marketplace approval are separate gates. This release was not imported into the user's WeChat account or uploaded to Xiaohongshu during verification. Reload the installed plugin after preserving any temporary studio draft to use the new UI.

中文:正文编辑区扩大,模板与样式改为抽屉。公众号图文使用 Word 文档导入;小红书可以批量导出排版卡片或原图。标题、正文单独复制。复制图片不再被误报为已经上传平台;请在目标平台预览确认后手动发布。

Mogao Content Studio 0.1.2

Choose a tag to compare

@github-actions github-actions released this 07 Sep 08:49

Mogao Content Studio 0.1.2 addresses source, CSS and release review feedback while retaining automatic image loading and separate title/body copying.

  • Sanitize HTML into DOM fragments; use Obsidian DOM/style helpers and CSS classes for fixed card geometry.
  • Validate settings and DNS response types, use Obsidian requestUrl for DNS fallback, and add searchable settings definitions with support for older Obsidian versions.
  • Use write-only Clipboard APIs and preserve user-triggered note selection; startup does not enumerate the Vault.
  • Remove unsupported CSS font keywords and all !important declarations.
  • Enforce the official Obsidian ESLint rules and CSS lint with zero warnings; 68 regression tests cover the affected behavior.

This release is built from its source tag by GitHub Actions. Artifact attestations cover all three files. Verify any downloaded file with gh attestation verify <file> --repo AI-Scarlett/obsidian-content-studio.

Install/update: place main.js, manifest.json and styles.css in .obsidian/plugins/content-studio/. Preserve data.json, save your draft, and reload the plugin. Optional ZIP/checksum packages are available in Actions artifacts. Desktop only.

Review boundary: Vault Enumeration and Clipboard Access may remain as descriptions of necessary, user-triggered capabilities. Clipboard reading is not implemented. Community approval and actual platform paste/upload acceptance are separate from these source checks. The DOM refactor has automated coverage; native 0.1.2 visual validation is still pending.


修复上架源码、CSS 和发布检查。保留自动载图、复制标题与复制正文;复制正文继续携带图片和排版。Release 只包含三个插件文件,由 GitHub Actions 构建并提供来源证明。68 项测试通过。行为检查中的“列出笔记”“剪贴板”分别用于选择笔记和手动复制,不读取剪贴板、不发送笔记路径列表。

Mogao Content Studio 0.1.1

Choose a tag to compare

@AI-Scarlett AI-Scarlett released this 07 Sep 08:21

Title and body now have separate copy buttons:

  • 复制标题 copies only the article title as plain text.
  • 复制正文 copies the body without the generated article title, preserving embedded images, inline styles and headings within the body.
  • X thread preview, copying and thread files omit the article title. Full HTML and Markdown exports retain the complete article.

Includes the 0.1.0 image fix: notes automatically load local and remote images, retain their original positions, and block rich copy/package export on missing images with clear retry guidance.

Install/update: extract the ZIP's content-studio folder into .obsidian/plugins/, or replace the three individual release files in that folder. Preserve data.json, save your draft, and reload the plugin. Desktop only.

Verification: 60 tests, TypeScript checks and plugin/demo builds passed. Real-note verification retained all 11 images. The clipboard includes image data; actual WeChat/Zhihu editor image acceptance remains unverified and may require manual media upload.


新增“复制标题”和“复制正文”:标题单独粘贴到标题栏,正文含图片和排版,不重复带上文章标题。原文中的小标题继续保留。保留自动载图及复制前缺图检查。更新时保留 data.json,保存稿件后重载插件即可生效。