Skip to content

laststance/inkdrop-prettier-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inkdrop-prettier

A Markdown formatter plugin for Inkdrop powered by Prettier v3.

Install

ipm install inkdrop-prettier

Usage

Keyboard Shortcut

Press Ctrl+Space in the editor to format the current note.

Menu

Plugins > Prettier Format

Format on Save

Enable Format on Save in the plugin settings to automatically format notes when saving.

Configuration

Open Inkdrop > Preferences > Plugins > prettier to configure:

Option Default Description
Print Width 80 Line length the printer wraps on
Tab Width 2 Spaces per indentation level
Use Tabs false Indent with tabs instead of spaces
Prose Wrap preserve How to wrap prose (always, never, preserve)
Single Quote false Use single quotes in code blocks
Format on Save false Auto-format when saving a note

Features

  • Formats Markdown using Prettier v3
  • Preserves cursor position after formatting
  • Preserves scroll position
  • Format-on-save support
  • Configurable via Inkdrop Settings UI
  • Error notifications for malformed content

License

MIT

About

Format Markdown notes in Inkdrop with Prettier v3 — keyboard shortcut, format-on-save, configurable via Inkdrop Settings UI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors