• Stars
    star
    154
  • Rank 240,790 (Top 5 %)
  • Language
    TypeScript
  • License
    GNU General Publi...
  • Created over 2 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

joplin plugin to enhance my daily usage

Joplin Plugin Enhancement

"Buy Me A Coffee"

Generate from the Joplin plugin template: https://joplinapp.org/api/get_started/plugins/

It contains several enhancement for both codemirror and markdown renderer.

Features

Pseudocode

Pseudocode block:

Codeblocks

Highlight.js based codeblocks

Image

Allow following md works:

![Your Figure Caption Here](/path/to/your/img){width=60%}

This plugin can:

  • Specific the width/height of the image with {width=80px}, {height=30}, {width=50%}
  • Render the image ![]() in a <figure> block with figcaption
  • Use the alt attribute as the figure caption, and display the caption under the image if not empty
  • Center alignment for image and caption
  • Automatic image numbering

Cat and Dog

Table

Auto add row/column, delete column, and format table.

This part mainly comes from takumisoft68: vscode-markdown-table. Please refer to it for the feature description. I just convert the code from vscode's editor to joplin's codemirror. :)

Because I have no idea how to create a context menu, currently all the operations are triggered by shortcut:

Function Shutcut
Insert a row above/below ctrl + shift + up/down
Insert a column left/right ctrl + shift + left/right
Delete current column ctrl + shift + backspace
Navigate to previous cell tab
Navigate to next cell shift + tab
  1. It will automatically format your table code for alignment when navigation between cells with tab
  2. A new line is appended when trying to navigate to next cell from the last cell

Table column colorize from the plugin: hieuthi/joplin-plugin-markdown-table-colorize

tableFormatter

Admonition Renderer in markdown editor

It supports both !!! style and ::: style admonitions.

You still need Admonition markdown extension plugin installed to render admonitions in the preview window & PDF exports. This plugin only renders admonitions in the markdown editor.

Admonition Editor Renderer

Enhanced blockquote support

  • It supports [color=red] item in blockquote area so that the blockquote can be rendered with the given color border.
  • [name=SeptemberHX] and [date=20220202]
  • Automatically fold the [xxx=xxx] to keep the editor clean

ColorfulBlockquote

EnhancedQuote

Inline/Block math renderer in markdown editor

It significantly hurts your joplin's performance for now, especially with lots of math block. Please refer to laurent22/joplin#6719

Disabled by default

Image Imgur Imgur

Mermaid renderer in markdown editor

image

Search & Replace

Code mainly comes from https://github.com/zhuhs/codemirror-search-replace

Current Bug: Cannot save after replacement. User needs to manually modify the note to save the change (for example: add a space) It is disabled by default

Imgur

Border for indent list in markdown editor

IndentBorder

QuoteRender

Clickable task checkbox in markdown editor

Codes mainly comes from Zettlr

TaskRender

Header tag render in markdown editor

It shares the same configuration as with the clickable task checkbox

Code mainly comes from Zettlr

Imgur

Toggle Sidebar and Note List panel together

A button on the note toolbar to toggle the sidebar and note list panel together.

It should be useful when the horizontal space of your screen is tight :)

Imgur

Render Front Matter to Nothing

It just renders the front matter to nothing. It is helpful when you try to keep the front matter part and avoid the unwanted rendered content.

frontMatter

Local file preview

Currently only local pdf file can be previewed.

Quick Commands

Type /command in the editor for quick input of table, mermaid, etc.

  • /table
  • /graph
  • /flowchart
  • /sequenceDiagram
  • /gantt
  • /classDiagram
  • /erDiagram
  • /journey
  • /now
  • /tommorow
  • /today

link/image/footnote renderer in the editor

Only single line image/link can be previewed. ctrl/meta + left click on the rendered widgets can open the urls/files

Link preview only works with PDF/video/audio files

Inline link and image are folded only.

image

Imgur

Build

Building the plugin

The plugin is built using Webpack, which creates the compiled code in /dist. A JPL archive will also be created at the root, which can use to distribute the plugin.

To build the plugin, simply run npm run dist.

The project is setup to use TypeScript, although you can change the configuration to use plain JavaScript.

Updating the plugin framework

To update the plugin framework, run npm run update.

In general this command tries to do the right thing - in particular it's going to merge the changes in package.json and .gitignore instead of overwriting. It will also leave "/src" as well as README.md untouched.

The file that may cause problem is "webpack.config.js" because it's going to be overwritten. For that reason, if you want to change it, consider creating a separate JavaScript file and include it in webpack.config.js. That way, when you update, you only have to restore the line that include your file.

Thanks to

More Repositories

1

dde-top-panel

dde top panel for Deepin V20
C++
229
star
2

screenshot

A screenshot module for Python based on PyQt5
Python
55
star
3

joplin-plugin-bundle

Gather several plugins together into one panel with more elegant UI design!
TypeScript
48
star
4

dde-globalmenu-service

DBus service registery for dde-globalmenu
C++
44
star
5

dde-istate-menus

a dde-dock plugin which aims to implement most features of Istat menus(macOS) for Deepin V20
C++
40
star
6

dde-smart-dir

Smart Directory Dock Plugin on Deepin V20 inspired by Smart Folder on macOS
C++
15
star
7

dde-pstate

intel pstate dock plugin for Deepin V20
C++
12
star
8

Chameleon-patched

Show windows menu on titlebar on DeepinV20
C++
10
star
9

HP-Spectre-X360-13-late-2018-Hackintosh

Clover EFI for hp spectre-x360-13 late 2018
ASL
9
star
10

MPaste

An clipboard manager alternative to Paste for Linux
C++
8
star
11

dde-mpris2-plugin

mpris2 player plugin for deepin v20
C++
7
star
12

joplin-plugin-readcube-papers

joplin plugin for readcube papers
TypeScript
4
star
13

MFramework

MFramework
Java
3
star
14

dde-shelloutput-plugin

dde-dock plugin which can run shell commands and show output on dock for Deepin V20
C++
3
star
15

scripts

My daily scripts
JavaScript
2
star
16

joplin-plugin-zettlr

TypeScript
2
star
17

TodoManager

A simple TodoManager written in C++ && Qt5
C++
2
star
18

joplin-plugin-dida365

TypeScript
1
star
19

septemberhx.github.io

Shell
1
star
20

AutoGameTools

游戏护肝助手
Jupyter Notebook
1
star
21

dde-globalmenu-integration

Specific Qt5 Platform theme for global menu
C++
1
star
22

joplin-plugin-rich-render

Trying to borrow existing plugins of other codemirror-based editor to Joplin
TypeScript
1
star