In <a href="https://mdview.io/" rel="nofollow">https://mdview.io/</a> I implemented sharing via url encoding so no server is needed, thou big files are not supported because of the url length limitation
A while ago, I just wrote a filter to be able to paste markdown into a <name>.smd file, and an Apache filter to autoprocess them much like any other filter (and a <named>.smd.meta for title info and some other metadata).<p>This makes it super easy to write something cool on Reddit or whatever, then just paste the markdown into an index.smd file in a new directory (named meaningfully) and <i>poof</i> it's in a webpage.<p>The core of all of it is a /var/www/cgi-bin/markdown-to-html program centered on:<p><pre><code> python3 -m markdown -x codehilite -x fenced_code -x toc
</code></pre>
It's enabled in my ~/www/.htaccess of all places:<p><pre><code> # This works, with setup in /etc/apache2/conf-enabled/mod-ext_filter-adds.conf
AddType text/markdown .md
AddType text/markdown .smd
AddOutputFilter markdown-to-html md
AddOutputFilter markdown-to-shtml;INCLUDES smd
</code></pre>
Much easier to just edit markdown (index.smd usually) and reload than reconvert, and that filter above lets you include arbitrary HTML too, critical to deal with markdown numerous weaknesses.
I really suggest adding some way to report pages because phishers and spammers will abuse it when they find it.
I use a self hosted HedgeDoc with Fail2Ban to deal with this. A cheap VPS + Coolify makes life so much better.<p>Separately, be cautious of people putting illegal content on your platform.
Looks nice, but if it was just because needed such tool, there're already mdshare and peerpad. There's also jbt's editor that saves state on URL, i.e., <a href="https://jbt.github.io/markdown-editor/#U1bwyOTics9XSEpMzlYoyVeI9vCLtefiAlFWChklJQXFVvr6eanlxXqVyfm5SZl5iSX5RXpApn5mSWqufWaKrYmZmYmppYkRAA==" rel="nofollow">https://jbt.github.io/markdown-editor/#U1bwyOTics9XSEpMzlYoy...</a>.
There's also Markdeep<p><a href="https://casual-effects.com/markdeep/" rel="nofollow">https://casual-effects.com/markdeep/</a>
I'm guessing it doesn't handle images because you'd have to upload the image, right? I tried one in this format:

with no luck. (Update: it works with URL links)
Building something on markdown as well - <a href="https://voiden.md/" rel="nofollow">https://voiden.md/</a><p>Also, nice project - I like the thinking here.
This looks very similar to <a href="https://docsify-this.net/" rel="nofollow">https://docsify-this.net/</a>
Adding an API can significantly increase the number of users, as it will make it easier for agents to share content.
Hi,<p>First thing that came to my mind: how do I "curl" a md to it?<p>But then, I don't know how you intend to manage spam/abuse
To prevent abuse, I'm using Cloudflare Turnstile to challenge bot access. Since the server validates the token from the browser, curl doesn't work—you'll have to use the web UI to upload. It's the simplest way I could keep the spam away for now.
I like the idea and expiration dates. Got any example pages using either theme?
Or just upload as gist
[dead]