Crates.io | insight |
lib.rs | insight |
version | 1.4.3 |
source | src |
created_at | 2022-10-21 13:34:56.27247 |
updated_at | 2022-11-25 13:30:38.135352 |
description | host, edit and publish markdown articles |
homepage | |
repository | |
max_upload_size | |
id | 693612 |
size | 84,006 |
insight
is a web server allowing you to edit markdown articles and host the rendered result publicly.
$ cargo install insight
config.json
:{
"domain-name": "i.l0.pm",
"dkim-private-key-path": "dkim.pem",
"dkim-selector": "insight2022",
"articles-dir": "articles",
"mail-dir": "mail",
"mail-username": "insight",
"listen-address": "127.0.0.1:9090",
"new-article": "new",
"manage": "manage",
"home": "home",
"allow-creation": true
}
$ mkdir articles mail
$ insight -c config.json
This will accept requests from all IP addresses
HTML tags are currently stripped from posts at render-time to prevent cross-site scripting vulnerabilities.
We rely on the pulldown_cmark
crate to detect these tags.
If you manage to get any JS code to execute in the post viewer via markdown, please file an issue because it shouldn't happen.