joplin-plugin-better-markdown-viewer

2.1.0 • Public • Published

Joplin Better Markdown Viewer

Discussion: https://discourse.joplinapp.org/t/plugin-keep-cursor-synced-between-editor-and-md-viewer/20928

Feature 1: Mark the active line of editor in MD Viewer

You can also set the highlight style in userstyle.css of Joplin. For example:

.better-markdown-viewer-highlight-line {
  position: relative;
}
.better-markdown-viewer-highlight-line::before {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.4);
  content: '';
  height: 100%;
  width: 3px;
  left: -6px;
}

When using dark theme, the highlighted line element get an extra class name.

.better-markdown-viewer-highlight-line-dark {
  background: red;
}

Feature 2: Focus the same line in editor when double click MD Viewer

When In View Mode:

Readme

Keywords

Package Sidebar

Install

npm i joplin-plugin-better-markdown-viewer

Weekly Downloads

2

Version

2.1.0

License

MIT

Unpacked Size

384 kB

Total Files

4

Last publish

Collaborators

  • ylc395