Skip to content

Releases: NANI-31/obsidian-copy-html-with-math

v1.0.5

Choose a tag to compare

@NANI-31 NANI-31 released this 22 Sep 22:36

Release 1.0.5

  • Removed redundant 'settings' headings to comply with Obsidian guideline.
  • Replaced all createEl('span') with Obsidian's native createSpan().
  • Replaced document.createDocumentFragment() with Obsidian's createFragment().
  • Added direct evt.preventDefault() inside editor-paste event listener when handled.
  • Replaced Node Buffer with arrayBufferToBase64 in SVG serialization.
  • Removed !important from CSS rules.
  • Fully typed replace callback parameters and Partial settings loading.
  • Cleaned README table headers and paths.

Full Changelog: 1.0.4...1.0.5

v1.0.4

Choose a tag to compare

@NANI-31 NANI-31 released this 22 Sep 22:23

Release 1.0.4 - Review Compliance & Fixes

  • Addressed all automated Obsidian community review checks.
  • Eliminated unsafe innerHTML/outerHTML DOM assignments using DOMParser and DOM node manipulation.
  • Replaced direct style assignments with CSS classes and Obsidian \setCssStyles.
  • Replaced heading element creation with
    ew Setting(containerEl).setName(...).setHeading().
  • Modernized build configuration using
    ode:module\ builtin modules.
  • Synchronized pnpm lockfile (\pnpm-lock.yaml).
  • Cleaned up console logs and unhandled promises.

Full Changelog: 1.0.3...1.0.4

v1.0.3

Choose a tag to compare

@NANI-31 NANI-31 released this 22 Sep 21:13

New Features

  • Auto-format Pasted Math from ChatGPT & Web (Ctrl+V):
    • Automatically cleans duplicate math text (e.g. pip_i, ii,
      n) when pasting rich text from ChatGPT, Claude, and Wikipedia.
    • Extracts underlying LaTeX formulas from KaTeX and MathJax annotations and formats them as standard Obsidian LaTeX ($...$ and $$...).
    • Automatically converts LaTeX brackets [...] and (...) into Obsidian $$... and $...$.
    • Fully togglable in settings via 'Auto-format pasted math from ChatGPT & Web'.

Full Changelog: 1.0.2...1.0.3

v1.0.2

Choose a tag to compare

@NANI-31 NANI-31 released this 22 Sep 20:47

Features

  • Added 'Code block background color' setting (defaults to OFF / transparent).
  • Code blocks now have a transparent background by default, cleanly adapting to both light and dark mode destinations (Notion, Google Docs, Apple Notes).
  • If enabled, code blocks receive the traditional shaded (#f5f5f5) background.

Full Changelog: 1.0.1...1.0.2

v1.0.1

Choose a tag to compare

@NANI-31 NANI-31 released this 22 Sep 18:18

Fixes

  • Enabled 'Render code with tables' by default for clean, unified boxed code block rendering in Notion, Google Docs, and rich text editors.
  • Enhanced code container CSS to prevent individual line-by-line dark highlight strips.
  • Enabled 'Include filename as header' by default when copying whole documents.

Full Changelog: 1.0.0...1.0.1

1.0.0

Choose a tag to compare

@NANI-31 NANI-31 released this 22 Sep 17:54

Initial release of Copy as HTML with Math. Supports rendering LaTeX math ($...$ and ...) into MathML for Microsoft Word, Google Docs, Apple Pages, and LibreOffice, and KaTeX HTML for web and email.