Some stupid simple way to share rendred Markdown documents
The extension choosen is .md. You can read more about the syntax here:
http://daringfireball.net/projects/markdown/syntax
The files are stored inside the data/ folder.
For content that you want to embed (like images), put them in the data/ folder
and reference them like that: 
Please note that this documentation focuses on installations where mdNotes is
used at the root of the domain.
Do your research to use in a subfolder and adapt the /assets paths.
git clone https://git.rita.moe/kody/mdNotes.gitBy default, you have to use URLs like https://n.kdy.ch/?f=example
or https://n.kdy.ch/index.php?f=example.
With some rewriting we can make it prettier, like https://n.kdy.ch/example
Add or edit the location / {} inside your server {} block,
next to with your other properties (listen, server_name, root, index, php, ...)
to include this try_files:
location / {
# Try to load as a file, a directory, or route it to index.php
try_files $uri $uri/ /index.php;
}
Your vHost should have AllowOverride All inside its
<Directory /path/to/folder/> node.
Enable mod_rewrite with a2enmode rewrite and restart Apache2.
Then, the .htaccess distributed here should work.
For this example we'll use doc.md as the file
and https://n.kdy.ch as the base URL.
.md file inside the data/ folder.https://n.kdy.ch/,?f=doc to it. The .md extension is optional.https://n.kdy.ch/?f=doc.https://n.kdy.ch/doc should work!