0.3.0 • Published 3 years ago

mdne v0.3.0

Weekly downloads
120
License
ISC
Repository
github
Last release
3 years ago

mdne - Markdown Neo Edit

A simple markdown and code editor powered by Markdown-it, Ace and Carlo.

npm GitHub release .github/workflows/test.yml GitHub forks GitHub stars

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
  • Full screen mode (F11)

Distributions and Integrations

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.
  • 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.
  2. Remove the old contents/precache-manifest.xxxxx.js.
  3. Edit contents/service-worker.js to change the reference of contents/precache-manifest.yyyyy.js file name.
  4. 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

0.3.0

3 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.44

5 years ago

0.1.43

5 years ago

0.1.42

5 years ago

0.1.41

5 years ago

0.1.40

5 years ago

0.1.39

5 years ago

0.1.38

5 years ago

0.1.37

5 years ago

0.1.36

5 years ago

0.1.35

5 years ago

0.1.34

5 years ago

0.1.33

5 years ago

0.1.32

5 years ago

0.1.31

5 years ago

0.1.30

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.27

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago