- Markdown support
- Heading
- Bold
- Italic
- Strikethrough
- Quoting code
- Quoting text
- List
- Link
- Image
- Table
- Code highlighting using highlight.js
- LaTeX math equations using MathJax
- The left borders of blockquotes are removed
- Log in to
Microsoft Azure - Find
App registrationsunderAll services - Click
New registration, selectAccounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)underSupported account types, and addhttp://localhost:5000/login/authorizedasRedirect URI - Click
Add a permissionto addFiles.ReadWrite,Notes.ReadWrite,User.Read,offline_accessunderAPI permissions > Microsoft Graph > Delegated permissions - Click
New client secretunderCertificates & secretsand store it securely
- Install Cairo
- Clone the code
- Add your own
Application IdandApplication secrettoconfig.pyor add them as environment variables - Run
npm install && npm run build - Create an isolated Python virtual environment and run
python setup.py installin it - Run
python run.pyto start the app - Navigate to
http://localhost:5000/
-
Run the app
- Run from docker
- Create an env file called
graph.keywith the following content:GRAPH_CLIENT_ID=your client id GRAPH_CLIENT_SECRET=your client secret - Run
sudo docker run -d -p 5000:5000 --env-file graph.key xiaodanmao/markote:latest
- Create an env file called
- Run from source code
- Run from docker
-
Install nginx
-
Install certbot and run instructions
-
Create
markote.confunder/etc/nginx/conf.dwith the following content:server { listen 443 ssl default_server; server_name yourdomain.com; ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem; location / { proxy_pass http://localhost:5000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $proxy_add_x_forwarded_for; proxy_set_header X-Scheme $scheme; } } -
Run
nginx -s reload
- Click
AddunderApp Services, selectDocker Containeras publish method - Select
Single ContainerasOptions,Docker HubasImage Source,PublicasAcess Typeand typexiaodanmao/markoteinImage and tagfield - Add
GRAPH_CLIENT_ID=your client id,GRAPH_CLIENT_SECRET=your client secret,MARKOTE_URL_SCHEME=httpsas application settings underConfiguration
