Hi everyone. First, I should say I'm not a native English speaker, so I write in Chinese and use AI to translate — I mention this because a more detailed version I posted earlier got flagged as a bot, which I understand, but it really is just me.
A bit about who I am: I develop Joplin plugins. Three of mine are in the plugin repo — Joplin Explorer, Joplin Aide, and Joplin Minimap ( lim0513 (lim) · GitHub ). So I'm a real user who spends a lot of time in Joplin.
My question: when I publish a note with Joplin's Publish feature, is there any way to get the note's raw Markdown from the share link? Right now /shares/:id only returns the rendered HTML page. I can't find a public way to get the source Markdown without using full account credentials (the authenticated items API), which feels like too much access for content that's already public.
The reason I'm asking: I'm building a small self-hosted frontend for my own published notes — better typography, a table of contents, dark mode, that kind of thing. To re-render a note nicely I need its Markdown source.
Would a small addition like /shares/:id?format=md make sense? It would reuse the same share lookup and access checks, just skip the HTML rendering step. I'd be glad to write it (with tests) if the idea is acceptable — I just wanted to check the direction with you first before opening a PR.
Thanks!