Repository navigation
3.19.1
A refused save now says why, in one line.
The web host in front of onlyworlds.com refuses a few kinds of text before they reach OnlyWorlds: a command such as python -m or curl directly after a backtick, a semicolon or a pipe (so inside inline code, a code block with no language word, or a table cell). Until now the plugin answered that refusal by putting the whole page the host sends back into its error notice, about 221,000 characters, so a failed save filled the window with markup and said nothing useful.
Now the notice is one line: "The web host in front of OnlyWorlds refused this before it reached OnlyWorlds (HTTP 403, a page titled Blocked). One known cause: a command such as python -m or curl directly after a backtick, a semicolon or a pipe. Write it in a code block with a language word, or after a $ prompt." Any other page the host answers with is named the same way, as the host's, with its HTTP status. A reply that is plain text is cut to 200 characters. The errors OnlyWorlds itself gives are unchanged.
What to write instead, when a save is refused for this reason: put the command in a code block whose first line has a language word (for example bash), or after a $ prompt, or without backticks.
Under the hood: the change is in how the plugin reads an error reply, with 7 new tests that fail on 3.19.0 and pass on 3.19.1 (798 in all).
Walked in a real Obsidian before release: downloading a world, saving an element, and a save the host refuses (the notice above, 292 characters instead of 221,349, the note stays unsaved and nothing reaches the server), on Windows desktop. Not walked on this release: iOS, macOS and Linux.