Skip to content

v1.1.0 — Open Markdown from URL

Choose a tag to compare

@msarson msarson released this 15 May 19:41
· 16 commits to main since this release

Added

  • Open Markdown from URL (#4)

    Load a Markdown document directly from a URL via Tools → Open Markdown from URL... or the new 🌐 Open URL... button on the Start Page. Three URL forms are accepted:

    • Raw URLs (raw.githubusercontent.com/...)
    • GitHub blob URLs (github.com/owner/repo/blob/branch/...) — rewritten to raw on the fly
    • Bare GitHub repo URLs (github.com/owner/repo) — probe README.md on main, fall back to master
  • Read-only URL tabs

    URL-loaded documents open in a locked tab with a 🔒 badge and italic title. They start in expanded (rendered-only) view because URL tabs are for reading. The format toolbar hides while a read-only tab is active. Ctrl+S routes through Save As to let you save a local editable copy — the tab then drops the lock and the expanded mode.

  • Per-tab expanded/split preference

    Expand/Split state is now remembered per tab, so flipping between a URL tab (expanded) and a regular file tab (split) no longer leaks state across them.

  • Relative URL resolution in fetched documents

    ![](images/foo.png) inside a fetched README resolves against the source URL. Relative .md link clicks open as new in-editor tabs. Absolute http(s) links open in the system browser via Process.Start, so WebView2 never navigates away from the editor.

  • Recent URLs list on the Start Page, persisted alongside Recent Files (capped at 15).

  • Public API for cross-addin invocation: MarkdownEditorApi.OpenUrl(string url)

    Other Clarion IDE addins can call this via reflection without taking a hard reference on ClarionMarkdownEditor.dll:

    var t = Type.GetType("ClarionMarkdownEditor.MarkdownEditorApi, ClarionMarkdownEditor");
    t?.GetMethod("OpenUrl")?.Invoke(null, new object[] { url });
  • Disk cache under %APPDATA%\ClarionMarkdownEditor\cache\

    Conditional GETs (ETag / If-Modified-Since) make reopens hit 304, and a stale copy is served when the network is unavailable — with a status bar hint so the user knows it's from cache.

  • Friendly fetch errors — distinct messages for 404 / 401–403 / 5xx / timeout / generic transport failure, each labelled with the URL that was attempted.

Changed

  • System.Net.Http added to project references (not in the SDK default for the WindowsDesktop SDK).
  • addTab / updateTabInfo JS signatures gained isReadOnly and baseUrl parameters; defaults preserve old-style calls.

Installation

  1. Extract the zip into {CLARION_PATH}\accessory\addins\MarkdownEditor\ (overwriting v1.0.2 files).
  2. Unblock the extracted files — right-click the zip → Properties → Unblock before extracting, or run Get-ChildItem "<install path>" -Recurse | Unblock-File in PowerShell.
  3. Restart Clarion.

Full Changelog: v1.0.2...v1.1.0