15 comments

  • Igor_Wiwi21 days ago
    In <a href="https:&#x2F;&#x2F;mdview.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mdview.io&#x2F;</a> I implemented sharing via url encoding so no server is needed, thou big files are not supported because of the url length limitation
  • erlkonig21 days ago
    A while ago, I just wrote a filter to be able to paste markdown into a &lt;name&gt;.smd file, and an Apache filter to autoprocess them much like any other filter (and a &lt;named&gt;.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&#x27;s in a webpage.<p>The core of all of it is a &#x2F;var&#x2F;www&#x2F;cgi-bin&#x2F;markdown-to-html program centered on:<p><pre><code> python3 -m markdown -x codehilite -x fenced_code -x toc </code></pre> It&#x27;s enabled in my ~&#x2F;www&#x2F;.htaccess of all places:<p><pre><code> # This works, with setup in &#x2F;etc&#x2F;apache2&#x2F;conf-enabled&#x2F;mod-ext_filter-adds.conf AddType text&#x2F;markdown .md AddType text&#x2F;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.
  • KomoD21 days ago
    I really suggest adding some way to report pages because phishers and spammers will abuse it when they find it.
    • hjinco21 days ago
      Thanks! That would be a good technical challenge for me. I&#x27;ll try to get it reflected.
    • mmerlin21 days ago
      Could add LLM-as-judge function to review new uploads and shadowban spam&#x2F;scams
  • barishnamazov21 days ago
    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.
    • hjinco21 days ago
      Appreciate the tips!
  • forgotpwd1621 days ago
    Looks nice, but if it was just because needed such tool, there&#x27;re already mdshare and peerpad. There&#x27;s also jbt&#x27;s editor that saves state on URL, i.e., <a href="https:&#x2F;&#x2F;jbt.github.io&#x2F;markdown-editor&#x2F;#U1bwyOTics9XSEpMzlYoyVeI9vCLtefiAlFWChklJQXFVvr6eanlxXqVyfm5SZl5iSX5RXpApn5mSWqufWaKrYmZmYmppYkRAA==" rel="nofollow">https:&#x2F;&#x2F;jbt.github.io&#x2F;markdown-editor&#x2F;#U1bwyOTics9XSEpMzlYoy...</a>.
    • hjinco21 days ago
      I felt like most of the current tools lack good design. That’s why I’m planning to add lots of pretty themes and even a feature where users can customize their own later on.
  • thunderbong21 days ago
    There&#x27;s also Markdeep<p><a href="https:&#x2F;&#x2F;casual-effects.com&#x2F;markdeep&#x2F;" rel="nofollow">https:&#x2F;&#x2F;casual-effects.com&#x2F;markdeep&#x2F;</a>
    • forgotpwd1621 days ago
      Looks interesting but Markdown is the only relevance. Submitted tool&#x2F;page is about sharing&#x2F;hosting. Markdeep is about making self-contained Markdown-written HTML pages.
    • hjinco21 days ago
      thanks for sharing
  • acrophiliac21 days ago
    I&#x27;m guessing it doesn&#x27;t handle images because you&#x27;d have to upload the image, right? I tried one in this format: ![title](P1090910.JPG) with no luck. (Update: it works with URL links)
    • hjinco21 days ago
      It doesn’t support local images yet since it currently only renders uploaded Markdown, but I’m looking into ways to make it work. thanks for the feedback!
  • dhruv300621 days ago
    Building something on markdown as well - <a href="https:&#x2F;&#x2F;voiden.md&#x2F;" rel="nofollow">https:&#x2F;&#x2F;voiden.md&#x2F;</a><p>Also, nice project - I like the thinking here.
  • preya2k21 days ago
    This looks very similar to <a href="https:&#x2F;&#x2F;docsify-this.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docsify-this.net&#x2F;</a>
  • souvlakee21 days ago
    Adding an API can significantly increase the number of users, as it will make it easier for agents to share content.
    • hjinco21 days ago
      Thanks! i’m planning to roll out API support soon
  • wiether21 days ago
    Hi,<p>First thing that came to my mind: how do I &quot;curl&quot; a md to it?<p>But then, I don&#x27;t know how you intend to manage spam&#x2F;abuse
    • hjinco21 days ago
      To prevent abuse, I&#x27;m using Cloudflare Turnstile to challenge bot access. Since the server validates the token from the browser, curl doesn&#x27;t work—you&#x27;ll have to use the web UI to upload. It&#x27;s the simplest way I could keep the spam away for now.
      • wiether21 days ago
        That&#x27;s what I was worried about... Thanks for the answer!
        • efilife21 days ago
          why is it a problem?
          • wiether21 days ago
            Because you can&#x27;t use it in a CI
            • hjinco21 days ago
              Good point. I‘ll be adding login and API support soon
  • saltwounds21 days ago
    I like the idea and expiration dates. Got any example pages using either theme?
    • hjinco21 days ago
      Glad you like the idea! I just put together a couple of quick examples to show how the themes look:<p>default: <a href="https:&#x2F;&#x2F;mdto.page&#x2F;1E&#x2F;ILeVn" rel="nofollow">https:&#x2F;&#x2F;mdto.page&#x2F;1E&#x2F;ILeVn</a> resume: <a href="https:&#x2F;&#x2F;mdto.page&#x2F;1E&#x2F;Cxhnf" rel="nofollow">https:&#x2F;&#x2F;mdto.page&#x2F;1E&#x2F;Cxhnf</a>
      • zahlman21 days ago
        Hmm. The explanation seems short enough to have written by hand easily. But I suppose that the natural style of AI output has the upside that it demonstrates the Markdown rendering well.
      • kps21 days ago
        Please use `:prefers-color-scheme` throughout.
  • NamlchakKhandro21 days ago
    Or just upload as gist
  • 382hi21 days ago
    [dead]