Live data from Hacker News

Show HN: Markdown as web page/site

github.com

41–50 of 60 posts

Re: Show HN: Markdown as web page/site

#41
post #9

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.

Richard P. Gabriel (who every Emacs person should know) wrote "Worse is Better"[1] in 1984, which is directly applicable. To summarise, "worse" software prioritises simplicity of implementation and priortises simplicity over correctness. [1] https://www.dreamsongs.com/RiseOfWorseIsBetter.html

so true! markdown is also about simplicity, which is this project try to follow

Re: Show HN: Markdown as web page/site

#42
I'm doing something similar for my personal notes but I combine .md and .html into 1 file. My .html file looks like this:

    
    
      
        
          text with markdown syntax goes here
        
      
      
        // use showdown.js to convert the innerHTMLin .md syntax to html code
        // use bootstrap to make the accordion-item collapsible/expandable
        // use js to make a floating TOC
      
    
    
If anybody uses both showdown.js and this casual-markdown.js, could you give some comments?

Re: Show HN: Markdown as web page/site

#44
post #37

There appears to be many comments here, arguing that authoring web content in markdown is nothing new, and correctly so. But this (along with md-page and mdwiki mentioned in other comments) is actually an interesting small twist on it. Regularly the conversion is done on the server side, and everything is published in html. Here, you both author and publish in markdown. What this library does, if I'm reading it corre…

Docsify https://docsify.js.org

Astro https://astro.build/

Re: Show HN: Markdown as web page/site

#47
post #40

This requires JavaScript to dynamically serve HTML. So this wastes everybody’s CPU for a deterministic computation that could be served directly. I’m not sure what’s the use case for this, but for static content seems wasteful and a bad idea in general.

The amount of CPU waste would be negligible.

It stops being negligible if the page gets popular.

Re: Show HN: Markdown as web page/site

#49
post #40

Earlier quoted context omitted.

The amount of CPU waste would be negligible.

It stops being negligible if the page gets popular.

No, it can still be neglected if the page gets popular. Neither the author nor any of the readers get any noticeable effect no matter how popular the page gets.

Re: Show HN: Markdown as web page/site

#50

I visited the documentation site on a slow mobile connection and it took a long time and even a refresh to load. This seems to be a bad way of doing something that has been solved by static site generators for a long time.

seems not lightweight enough. i will work out a self-sufficient all-in-one verson in 300 lines.
Post reply on HN