Skip to content

Latest commit

 

History

History
83 lines (44 loc) · 1.94 KB

File metadata and controls

83 lines (44 loc) · 1.94 KB

mdp app icon

mdp

markdown preview for local files using Electron, marked, highlight.js, mermaid, node-emoji, and automatic file watching.

https://ericlink.github.io/mdp/

markdown.png

mermaid.png

features

highlight.js

syntax highlighting https://highlightjs.org/

mermaid diagrams

https://mermaidjs.github.io/

node-emoji

https://github.com/omnidan/node-emoji

supported emoji

marked markdown parsing

github flavored markdown

https://marked.js.org/

https://github.com/markedjs/marked

example.md

keys

Open as HTML ⌘K

Edit Markdown ⌘E

Zoom - zoom in ⌘+, zoom out ⌘-, actual size ⌘0

macOS

full screen support

dark mode window

architecture

isolated renderer with a preload bridge

markdown links between local .md files stay inside the preview

external links open in your default browser

command line

put mdp.app/Contents/Resources/app/package/mdp script in your path

internal mac distribution

build unsigned Apple Silicon artifacts with:

npm run make:mac-internal

Electron Forge writes the unsigned .dmg and .zip to out/make/.

Install by opening the .dmg and dragging mdp.app into /Applications.

To make mdp the default app for Markdown files, pick any .md file in Finder, choose Get Info, set Open with to mdp, then click Change All....

logs

unexpected main-process failures are written to /tmp/mdp-main.log

development

npm install

npm run dev

npm run dev-readme