joplin-plugin-tag-navigator 2.5.9 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -83,6 +83,7 @@ After installing the plugin, check the commands listed under `Tag Navigator` in
83
83
  - [Filtering results](#filtering-results)
84
84
  - [Inline TODOs](#inline-todos)
85
85
  - [Colour tags](#colour-tags)
86
+ - [Styling inline tags](#styling-inline-tags)
86
87
  - [Keyboard shortcuts](#keyboard-shortcuts)
87
88
  - [Converting Joplin tags](#converting-joplin-tags)
88
89
 
@@ -375,6 +376,31 @@ This example searches for paragraphs that have both `#artist` AND `#album` tags,
375
376
 
376
377
  ![colour tags](img/tag-navigator-colours.png)
377
378
 
379
+ ### Styling inline tags in the Markdown preview
380
+
381
+ The Markdown preview pane wraps every match in `itags-search-renderedTag` and, when the token starts with `#`, `@`, `+`, or `//`, adds `itags-search-renderedTag--hash`, `--at`, `--plus`, or `--slash`. You may define their appearance in `userstyle.css`, e.g.:
382
+
383
+ ```css
384
+ /* optional: specify different sub-styles for each type of tag */
385
+ .itags-search-renderedTag {
386
+ background-color: #a576b3ff;
387
+ }
388
+
389
+ .itags-search-renderedTag--at {
390
+ background-color: #6fae4a;
391
+ }
392
+
393
+ .itags-search-renderedTag--plus {
394
+ background-color: #ae4a6f;
395
+ }
396
+
397
+ .itags-search-renderedTag--slash {
398
+ background-color: #4a6fae;
399
+ }
400
+ ```
401
+
402
+ For the Markdown editor see Rich Markdown in the [Companion plugins](#companion-plugins) section.
403
+
378
404
  ### Keyboard shortcuts
379
405
 
380
406
  - Default command shortcuts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-tag-navigator",
3
- "version": "2.5.9",
3
+ "version": "2.6.0",
4
4
  "scripts": {
5
5
  "dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
6
6
  "prepare": "npm run dist",
@@ -29,6 +29,7 @@
29
29
  "webpack-cli": "^4.10.0"
30
30
  },
31
31
  "dependencies": {
32
+ "@codemirror/lang-yaml": "^6.1.2",
32
33
  "date-fns": "^3.6.0",
33
34
  "js-yaml": "^4.1.0",
34
35
  "lodash.debounce": "^4.0.8",
@@ -6,7 +6,7 @@
6
6
  "desktop",
7
7
  "mobile"
8
8
  ],
9
- "version": "2.5.9",
9
+ "version": "2.6.0",
10
10
  "name": "Inline Tag Navigator",
11
11
  "description": "Type inline tags or frontmatter in the note editor. View your tagged paragraphs and tasks / TODOs in a search panel, or in a generated note / kanban. Build a table view / database from notes and tags. Convert between Obsidian tags and Joplin tags.",
12
12
  "author": "Alon Diament",
@@ -24,6 +24,6 @@
24
24
  ],
25
25
  "screenshots": [],
26
26
  "icons": {},
27
- "_publish_hash": "sha256:d53cd07005abfba3dfd393be7e95c90b93c82eade7f1e2158b8919c20f9fe79c",
28
- "_publish_commit": "main:d6e39de96b8e7423dfbba2d2c2c92dcdede8ecec"
27
+ "_publish_hash": "sha256:da81f7c5502ce37d5f2641a1fcf17ae6f0dd5fcc00015581532f4d31400836c0",
28
+ "_publish_commit": "main:764250a7171655401ae1c448d772556a391600e8"
29
29
  }