为Standard Notes增强Markdown编辑器

非官方增强的Markdown编辑器,为Standard Notes添加实时预览、工具栏、自动调整大小的图像粘贴/上传、PDF导出等功能,并自动清理未使用的图像。此版本采用新架构,具有坚如磐石的同步可靠性。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
koyasi777
日安装量
0
总安装量
12
评分
0 0 0
版本
6.5.1
创建于
2025-06-20
更新于
2025-08-23
大小
2.0 MB
许可证
MIT
适用于

Enhanced Markdown Editor for Standard Notes

📌 Overview

This userscript supercharges Standard Notes (web) by replacing its default plain-text editor with a feature-rich, privacy-respecting Markdown editor. It includes a live preview, customizable toolbar, advanced image handling, PDF export, and a visual table editor—all running 100% in your browser.


✨ Key Features

  • 🛠️ Rich formatting toolbar for headings, bold, italic, strikethrough, quotes, lists, checklists, code blocks, links, images, tables, and horizontal rules
  • 🔀 Editor / Split / Preview modes with synchronized updates
  • 🧠 Live preview with marked.js, DOMPurify, and highlight.js—fully sanitized and syntax-highlighted
  • 🖼 Smart image handling:
    • Paste from clipboard → auto-resize to max 1280px, embedded as base64
    • Upload from file or insert via URL using a modal UI
    • Unused embedded images are auto-cleaned
  • 📋 Code block clipboard support with "Copy" buttons
  • 🔠 Interactive table editor with cell editing, row/column control, and alignment settings
  • 🖨 PDF export and print-friendly layout with clean formatting
  • 🌙 Fully supports dark mode and integrates with Standard Notes theme variables
  • 💾 Remembers user preferences like view mode and toolbar visibility

⚠️ This is an unofficial userscript not affiliated with Standard Notes, Inc.


🚀 Installation Guide

  1. Install a userscript manager:
  2. Install the userscript: 👉 Click here to install
  3. Visit https://app.standardnotes.com/ — the enhanced Markdown editor activates automatically.

💡 The script detects and upgrades the default editor without affecting other editors.


🔍 Feature Summary

Feature Description
Toolbar One-click insertion of Markdown syntax
View Modes Toggle between Edit, Split, and Preview layouts
Preview Safe, real-time HTML rendering with copy-enabled code
Image Support Pasting, uploading, and reference insertion; automatic cleanup
Tables Visual Markdown table builder with cell navigation
Export / Print PDF-ready styles and layout for clean hardcopies
Performance Debounced rendering and efficient DOM interaction
Theme Integration Uses SN-provided CSS variables; dark mode aware

🔐 Security & Privacy

  • 🛡 All processing is local — no external APIs, uploads, or analytics
  • ✔ Sanitized Markdown via DOMPurify
  • 🔒 Base64 image data is embedded, stored only inside your notes
  • 🧹 Unused images are automatically deleted for cleanliness

Use at your own risk; no official support or endorsement from Standard Notes.


📝 Compatibility & Notes

  • ✔ Works with default plain-text editor only (https://app.standardnotes.com/)
  • ❌ Incompatible with official editors like Bold or Code
  • 🔄 Subject to breaking changes if Standard Notes updates its DOM structure

🌍 Contribution

  • 🧑‍💻 MIT Licensed — free to use, adapt, and distribute
  • ❤️ Feedback and pull requests welcome!

🔗 GitHub Repository


💡 Why Use This?

Elevate your Standard Notes experience with an intuitive, fast, and powerful Markdown editor—no extensions, no compromises, just pure productivity in your browser.