5

Like many people, I prefer writing in Markdown - is there a mod_markdown or similar that will let Apache serve Markdown content but render as HTML ?

  • see this: docs.blogofile.com/en/latest/intro.html simple installation in ubuntu. – marolu Apr 11 '18 at 21:24
  • @marolu - while an interesting alternative, that doesn't really answer the question :) – warren Apr 16 '18 at 14:36
  • The way I see it is that browsers do not read Markdown, it is translated by the server into <b>s and what not. I am sure there are scripts out to covert MD to ML in whatever language (Turing-complete) you are wanting to use – Stan Strum Apr 16 '18 at 15:18
5

This sort of syntax is typical for a wiki engine, but they mostly propose similar syntaxes other than Markdown. However, you can try MDwiki:

MDwiki is a CMS/Wiki completely built in HTML5/Javascript and runs 100% on the client. No special software installation or server side processing is required. Just upload the mdwiki.html shipped with MDwiki into the same directory as your markdown files and you are good to go!

It really is that simple. Follow the tutorial. This is a renderer, not an in-page editor.

  • 1
    I use this and it is pretty amazing. However it is a dead project for the past five years now. No longer supported. – AlanObject May 8 at 20:32
3

Yes, there is https://github.com/hamano/apache-mod-markdown.

There is a package for arch linux but there seems to be no debian package. However, the instructions in the README are written for Debian/Ubuntu.

1

I don't think there is any such Apache module, and I'm not sure that it would even make sense to have one.

However, Markdown is implemented in many different languages (including php, perl, python, java etc), and many blog/wiki/CMS etc programs written in those languages have either built-in or plugin-provided support for Markdown.

See https://en.wikipedia.org/wiki/Markdown#Implementations

0

This is probably not a good idea, since markdown is used to create HTML fragments not full pages. Those fragments would then be inserted into a document with a head and body. You could use Apache's server-side includes to insert markdown-created fragments into your site's standard page structure. To do that, install the markdown renderer from Gruber's site and call it from an SSI tag.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.