v1.1.0 — Open Markdown from URL
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) — probeREADME.mdonmain, fall back tomaster
- Raw URLs (
-
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
inside a fetched README resolves against the source URL. Relative.mdlink clicks open as new in-editor tabs. Absolutehttp(s)links open in the system browser viaProcess.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.Httpadded to project references (not in the SDK default for the WindowsDesktop SDK).addTab/updateTabInfoJS signatures gainedisReadOnlyandbaseUrlparameters; defaults preserve old-style calls.
Installation
- Extract the zip into
{CLARION_PATH}\accessory\addins\MarkdownEditor\(overwriting v1.0.2 files). - Unblock the extracted files — right-click the zip → Properties → Unblock before extracting, or run
Get-ChildItem "<install path>" -Recurse | Unblock-Filein PowerShell. - Restart Clarion.
Full Changelog: v1.0.2...v1.1.0