為Standard Notes強化Markdown編輯器

非官方強化Markdown編輯器,為Standard Notes新增即時預覽、工具列、自動縮放圖片貼上/上傳、PDF匯出等功能,並自動清除未使用圖片。此版本採用新架構,具備堅如磐石的同步可靠性。

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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.