mdne
v0.3.0
Published
MDNE - Markdown Neo Edit. A simple markdown and code editor powered by Markdown-it, Ace and Carlo.
Downloads
882
Maintainers
Readme
mdne - Markdown Neo Edit
A simple markdown and code editor powered by Markdown-it, Ace and Carlo.
Migrate from
v0.1.x
(for Windows)
Please re-run./make-shortcut.cmd
.
Features
- Live preview of Markdown, HTML, LSX formats.
- Export Markdown, HTML, LSX into PDF or HTML.
- Code highlighting.
- C#
- CSS
- Dockerfile
- Go
- GraphQL
- HTML
- JavaScript
- JSON
- JSON5
- JSX
- Latex
- Less
- Lisp
- Makefile
- Markdown
- Protobuf
- Python
- R
- Ruby
- Rust
- Sass
- Scss
- Shell script
- SQL
- SVG
- Tex
- TSX
- TypeScript
- XML
- YAML
- Markdown extended syntax
- Many markdown-it plugins are enabled. See here.
- Scripting and value expansion
- See here.
- Full screen mode (F11)
Distributions and Integrations
- mdne
- Offline desktop app for Google Chrome browser + Node.js.
- This repository
- Carlo app
- Offline desktop app for Google Chrome browser + Node.js.
- mdne-electron
- Standalone offline desktop app for Windows/Mac/Linux.
- Electron app
- Standalone offline desktop app for Windows/Mac/Linux.
- mdne-for-kintone
- Edit kintone record's field. (browser app)
- mdne online
- Live demo (PWA)
Install
Prerequirements
- Google Chrome (latest)
- Node>=10
Install from NPM
Linux
env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=TRUE npm install -g mdne
Windows
set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=TRUE npm install -g mdne
Chrome OS (Chromebook / Chromebox) Crostini
env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=TRUE npm install -g mdne cd mkdir Desktop
Create desktop and 'send to' menu shoorcuts (Windows)
- Download source zip archive from here.
- Extract zip archive and run
make-shortcut.cmd
.
Create desktop icon (Linux)
mdne.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=mdne
Comment=mdne
Exec=/home/(user name)/.nvm/versions/node/v??.??.??/bin/node /home/(user name)/.nvm/versions/node/v??.??.??/lib/node_modules/mdne/index.js %F
Icon=/home/(user name)/.nvm/versions/node/v??.??.??/lib/node_modules/mdne/contents/favicon.svg
Path=/home/(user name)/Desktop
Terminal=false
StartupNotify=false
Name[en_US]=mdne
Replace
(user name)
and??.??.??
.
Run
Open blank editor:
Linux, Windows
mdne
Chrome OS (Chromebook / Chromebox) Crostini
env MDNE_CHROME_CHANNEL_CHROMIUM=true mdne
MDNE_CHROME_CHANNEL_CHROMIUM=TRUE
can alternatively be written to.bashrc
.- Chromium is downloaded locally the first time it run.
Open file:
Linux, Windows
mdne README.md
Chrome OS (Chromebook / Chromebox) Crostini
env MDNE_CHROME_CHANNEL_CHROMIUM=true mdne README.md
MDNE_CHROME_CHANNEL_CHROMIUM=TRUE
can alternatively be written to.bashrc
.- Chromium is downloaded locally the first time it run.
CLI
Please use Ménneu CLI.
Live demo
https://shellyln.github.io/mdne/
Open external files from live demo
- Drop a local file into FileDropOpenDialog.
- Set the target URL to a location hash.
- example: react-dom.development.js
- Fetching files is restricted by the Same-Origin Policy.
- example: react-dom.development.js
- Set zipped data to a location hash.
- example: hello.md
- location hash is generated when
Save
orSaveAs
commands are done.
- location hash is generated when
- example: hello.md
Live demo browser requirements
- Google Chrome: latest
- Firefox: latest
Live demo restrictions
- Rendering / exporting to PDF is not available.
- Save and SaveAs commands download the file being edited.
Deploying Live demo
- Run
npm run manifest
after edit thecontents/*
.- New
contents/precache-manifest.yyyyy.js
will generate.
- New
- Remove the old
contents/precache-manifest.xxxxx.js
. - Edit
contents/service-worker.js
to change the reference ofcontents/precache-manifest.yyyyy.js
file name. - Deploy the
contents/*
.
Security warning
Exposing of Node side functions by RPC is enabled in preview iframe.
DON'T OPEN links to untrusted sites from the preview.
Exposed functions have the ability to list / read / write local files.
License
ISC
Copyright (c) 2019 Shellyl_N and Authors.
Bundled softwares' license
- Ace: license (BSD-3-Clause)
- Materialize: license (MIT)
- Normalize.css: license (MIT)
- React: license (MIT)
- pako: license (MIT + ZLIB)
- dialog-polyfill: license (BSD-3-Clause)