MDNE - Markdown Neo Edit. A simple markdown and code editor powered by Markdown-it, Ace and Carlo.
npm install mdne
v0.1.x (for Windows)
./make-shortcut.cmd.
sh
env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=TRUE npm install -g mdne
`
* Windows
`cmd
set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=TRUE
npm install -g mdne
`
* Chrome OS (Chromebook / Chromebox) Crostini
`sh
env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=TRUE npm install -g mdne
cd
mkdir Desktop
`
$3
* Download source zip archive from here.
* Extract zip archive and run make-shortcut.cmd.
$3
* mdne.desktop
`ini
[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
$3
* Linux, Windows
`sh
mdne
`
* Chrome OS (Chromebook / Chromebox) Crostini
`sh
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.
$3
* Linux, Windows
`sh
mdne README.md
`
* Chrome OS (Chromebook / Chromebox) Crostini
`sh
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.
* Set zipped data to a location hash.
* example: hello.md
* location hash is generated when Save or SaveAs commands are done.
#### 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
1. Run npm run manifest after edit the contents/*.
* New contents/precache-manifest.yyyyy.js will generate.
1. Remove the old contents/precache-manifest.xxxxx.js.
1. Edit contents/service-worker.js to change the reference of contents/precache-manifest.yyyyy.js file name.
1. Deploy the contents/*`.