Live data from Hacker News

Show HN: Markdown as web page/site

github.com

21–30 of 60 posts

Re: Show HN: Markdown as web page/site

#23

org-mode already has this. Unfortunately, people seem to continue to use the inferior version of org known as Markdown. It is somewhat like how pdf overtook the superior format djvu.

I agree that Markdown is probably an inferior markup format compared to org but serious usage of org is tied to Emacs. Moreover, Markdown (or CommonMark) has an extremely healthy ecosystem and a lot of tools that make life easier, unlike org mode. The most popular static site generators also use Markdown and RST. Unless using Emacs becomes a user friendly beginner's choice (which it isn't, and that's fine) or Org is…

There's actually a quite featureful version of org for Neovim: nvim-orgmode https://github.com/nvim-orgmode/orgmode

Re: Show HN: Markdown as web page/site

#24
post #4

I was under the impression that using markdown to create html webpages was a common use case, and had been solved. Was I wrong? (I've used markdown for note taking, not for web pages, hence am asking.)

As far as i know

[1] https://www.mkdocs.org : Markdown to static web page converter

[2] https://rentry.co : Markdown pastebin

[3] https://prose.sh : Markdown blog, upload post via ssh

[4] https://bearblog.dev : Markdown blog, upload post via web-browser

Re: Show HN: Markdown as web page/site

#25
post #4

I was under the impression that using markdown to create html webpages was a common use case, and had been solved. Was I wrong? (I've used markdown for note taking, not for web pages, hence am asking.)

As far as i know [1] https://www.mkdocs.org : Markdown to static web page converter [2] https://rentry.co : Markdown pastebin [3] https://prose.sh : Markdown blog, upload post via ssh [4] https://bearblog.dev : Markdown blog, upload post via web-browser

There's just a ton of libraries around it. I've used Markdowndeep in C#. I forget all the ones I tried (at least 3) before I settled on that one.

A colleague just mentioned this to me a few days ago:

https://docs.microsoft.com/en-us/powershell/module/microsoft...

Re: Show HN: Markdown as web page/site

#28
post #4

I was under the impression that using markdown to create html webpages was a common use case, and had been solved. Was I wrong? (I've used markdown for note taking, not for web pages, hence am asking.)

The usual approach is to compile markdown to html either before uploading to server or server side.

My understanding is this renders markdown to html client side using JavaScript

Re: Show HN: Markdown as web page/site

#29
The Grav CMS also internally uses Markdown for the page contents and generates static files: https://getgrav.org/

They do use YAML FrontMatter for attaching metadata so the CMS knows how to process certain pages (e.g. page title, page type etc.), but it isn't too complicated in practice: https://learn.getgrav.org/17/content/content-pages#page-file

They also have an admin plugin, which you can use if you prefer a more traditional workflow, even if it just generates the same file format under the hood: https://learn.getgrav.org/16/admin-panel/introduction

I'm actually using an ancient version of Grav for my own blog, although I had to put the admin path behind additional auth (in addition to the one it already provides), for safety: https://blog.kronis.dev/

I really like hybrid systems like that: a CMS for blogging or just writing in general that's based on Markdown, generates static files for decent performance, but is also extensible with additional functionality, and also has a decent web UI if you want one.

(there are probably other CMSes like that out there, or more generic solutions, too)

Of course, the actual use case for the linked solution is a bit different, being able to dynamically render Markdown client side is also pretty cool! Feels almost more flexible in a way.

Post reply on HN